File tree 1 file changed +5
-3
lines changed
1 file changed +5
-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=`echo ${{ github.event.label.name }}`
46
+ PR_BRANCH=`echo $PR_BRANCH | cut -d ' ' -f2`
47
+ PR_BRANCH=backport/backport-${{ github.event.pull_request.number }}-to-$PR_BRANCH
46
48
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"
49
+ echo "Update Backport PR ' #$PR_NUMBER' on branch ' $PR_BRANCH' with ' backport-automerge' label"
48
50
gh issue edit -R opensearch-project/documentation-website $PR_NUMBER --add-label backport-automerge
49
51
env :
50
- GH_TOKEN : ${{ steps.github_app_token.outputs.token }}
52
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments