25
25
env :
26
26
JF_URL : ${{ vars.JFROG_PLATFORM_URL }}
27
27
with :
28
- oidc-provider-name : ${{ inputs.oidc-provider }}
29
- oidc-audience : ${{ inputs.oidc-audience }}
28
+ oidc-provider-name : ${{ secrets.JFROG_OIDC_PROVIDER }}
29
+ oidc-audience : ${{ inputs.JFROG_OIDC_AUDIENCE }}
30
30
31
31
- name : Get info
32
32
id : get-build-info
@@ -36,25 +36,26 @@ jobs:
36
36
- name : Get commit hash from repo
37
37
id : get-commit-hash
38
38
run : |
39
- echo commit-hash=$(steps.get-build-info.outputs.build-info | jq -r '.vcs[].revision') >> $GITHUB_OUTPUT
39
+ echo commit-hash=$(echo '${{ steps.get-build-info.outputs.build-info }}' | jq -r '.buildInfo .vcs[].revision') >> $GITHUB_OUTPUT
40
40
41
- - name : Get commit hash from repo
41
+ - name : Get build name
42
42
id : get-build-name
43
43
run : |
44
- echo build-name=$(steps.get-build-info.outputs.build-info | jq -r '.name') >> $GITHUB_OUTPUT
44
+ echo build-name=$(echo '${{ steps.get-build-info.outputs.build-info }}' | jq -r '.buildInfo .name') >> $GITHUB_OUTPUT
45
45
46
46
- name : Debug
47
47
run : |
48
- echo ${{ steps.get-build-info.outputs.build-info }}
49
- echo ${{ steps.get-build-info.outputs.build-name }}
48
+ echo "commit-hash: ${{ steps.get-commit-hash.outputs.commit-hash }}" && \
49
+ echo "build-name: ${{ steps.get-build-name.outputs.build-name }}" && \
50
+ echo "build-info: ${{ steps.get-build-info.outputs.build-info }}"
50
51
51
52
- name : Merge commit hash from source to target branch
52
53
uses : ./github/actions/fast-forward-merge
53
54
with :
54
- ref-to-merge : ${{ steps.get-build-info .outputs.build-info }}
55
+ ref-to-merge : ${{ steps.get-commit-hash .outputs.commit-hash }}
55
56
base-branch : ${{ inputs.target-branch }}
56
57
git-bot-token : ${{ secrets.CLIENT_BOT_PAT }}
57
58
58
59
- name : Promote build
59
60
run : |
60
- jf rt build-promote ${{ steps.get-build-info .outputs.build-name }} ${{ inputs.build-number }} ${{ inputs.target-repository }}
61
+ jf rt build-promote ${{ steps.get-build-name .outputs.build-name }} ${{ inputs.build-number }} ${{ inputs.target-repository }}
0 commit comments