File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 8
8
publish :
9
9
runs-on : ubuntu-latest
10
10
steps :
11
+ - name : Get release branch
12
+ id : get_branch
13
+ run : |
14
+ RELEASE_BRANCH=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
15
+ "https://api.github.com/repos/${{ github.repository }}/releases/${{ github.event.release.id }}" \
16
+ | jq -r .target_commitish)
17
+ echo "branch=$RELEASE_BRANCH" >> $GITHUB_OUTPUT
18
+
11
19
- uses : actions/checkout@v4
20
+ with :
21
+ fetch-depth : 0
22
+ ref : ${{ steps.get_branch.outputs.branch }}
12
23
13
24
- name : Setup Node.js
14
25
uses : actions/setup-node@v4
25
36
git config --local user.email "github-actions[bot]@users.noreply.github.com"
26
37
git config --local user.name "github-actions[bot]"
27
38
git commit -am "chore: update package version to $RELEASE_VERSION [skip ci]"
28
- git push
39
+ git push origin ${{ steps.get_branch.outputs.branch }}
29
40
fi
30
41
31
42
- name : Install dependencies
You can’t perform that action at this time.
0 commit comments