File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 42
42
43
43
- name : Label new backport PR with backport-automerge label
44
44
run : |
45
- PR_BRANCH=backport/backport-<%= number % > -to-<%= base % >
45
+ PR_BRANCH=backport/backport-${{ github.event.pull_request. number }} -to-`echo ${{ github.event.label.name }} | cut -d ' ' -f2`
46
46
PR_NUMBER=`gh pr list -R opensearch-project/documentation-website --json "number,headRefName" --state open | jq -r ".[] | select(.headRefName == \"$PR_BRANCH\") | .number"`
47
- echo "Update Backport PR #$PR_NUMBER on branch $PR_BRANCH with backport-automerge label"
47
+ echo "Update Backport PR ' #$PR_NUMBER' on branch ' $PR_BRANCH' with ' backport-automerge' label"
48
48
gh issue edit -R opensearch-project/documentation-website $PR_NUMBER --add-label backport-automerge
49
49
env :
50
- GH_TOKEN : ${{ steps.github_app_token.outputs.token }}
50
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments