File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ defaults:
14
14
shell : bash
15
15
16
16
concurrency :
17
- group : ${{ github.workflow }}-${{ github.ref }}
17
+ group : ${{ github.workflow }}-${{ github.event.pull_request.number || github. ref }}
18
18
cancel-in-progress : true
19
19
20
20
permissions :
@@ -110,7 +110,7 @@ jobs:
110
110
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
111
111
git add .
112
112
git commit -m "docs: update API documentation via docsgen-cli"
113
- BRANCH_NAME=$(echo $ GITHUB_HEAD_REF | sed 's/ refs\ /heads\///')
113
+ BRANCH_NAME=${ GITHUB_HEAD_REF:-${GITHUB_REF# refs/heads/}}
114
114
git push https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.actor }}/lotus.git HEAD:$BRANCH_NAME
115
115
116
116
- name : Comment on the pull request
@@ -126,4 +126,4 @@ jobs:
126
126
...context.repo,
127
127
issue_number: prNumber,
128
128
body: comment
129
- });
129
+ });
You can’t perform that action at this time.
0 commit comments