File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -22,13 +22,16 @@ jobs:
22
22
RELEASE_TAG : ${{ inputs.tag || 'codeql-bundle-v2.22.0' }}
23
23
steps :
24
24
- name : Check release tag format
25
+ id : checks
25
26
shell : bash
26
27
run : |
27
28
if ! [[ $RELEASE_TAG =~ ^codeql-bundle-v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
28
29
echo "Invalid release tag: expected a CodeQL bundle tag in the 'codeql-bundle-vM.N.P' format."
29
30
exit 1
30
31
fi
31
32
33
+ echo "target_branch=dependency-proxy/$RELEASE_TAG" >> $GITHUB_OUTPUT
34
+
32
35
- name : Check that the release exists
33
36
shell : bash
34
37
env :
61
64
- name : Push changes and open PR
62
65
shell : bash
63
66
env :
64
- BRANCH : " dependency-proxy/${{ env.RELEASE_TAG }}"
65
67
GITHUB_TOKEN : " ${{ secrets.GITHUB_TOKEN }}"
66
68
run : |
67
69
set -exu
@@ -77,16 +79,16 @@ jobs:
77
79
EOF
78
80
)
79
81
80
- git checkout -b "$BRANCH "
82
+ git checkout -b "${{ steps.checks.outputs.target_branch }} "
81
83
82
84
npm run build
83
85
git add ./src/start-proxy-action.ts
84
86
git add ./lib
85
87
git commit -m "$pr_title"
86
88
87
- git push origin "$BRANCH "
89
+ git push origin "${{ steps.checks.outputs.target_branch }} "
88
90
gh pr create \
89
- --head "$BRANCH " \
91
+ --head "${{ steps.checks.outputs.target_branch }} " \
90
92
--base "main" \
91
93
--title "${pr_title}" \
92
94
--body "${pr_body}" \
You can’t perform that action at this time.
0 commit comments