File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616 env :
1717 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
1818 run : |
19- PERMISSION=$(gh api /repos/${{ github.repository }} /collaborators/${{ github.actor }} /permission --jq '.permission')
19+ PERMISSION=$(gh api /repos/$GITHUB_REPOSITORY /collaborators/$GITHUB_ACTOR /permission --jq '.permission')
2020 if [ "$PERMISSION" == "admin" ] || [ "$PERMISSION" == "write" ]; then
2121 echo "is_maintainer=true" >> $GITHUB_OUTPUT
2222 else
5353 git config --global user.name "GitHub Actions"
5454
5555 - name : Run backport script
56- run : ./misc/backport/backport.sh ${{ env.BRANCH_NAME }} ${{ github.event.issue.number }}
5756 env :
5857 # Use ORG_REPO_TOKEN instead of GITHUB_TOKEN
5958 # This allows the created PR to trigger tests and other workflows
60- GITHUB_TOKEN : ${{ secrets.ORG_REPO_TOKEN }}
59+ GITHUB_TOKEN : ${{ secrets.ORG_REPO_TOKEN }}
60+ ISSUE_NUMBER : ${{ github.event.issue.number }}
61+ run : ./misc/backport/backport.sh "$BRANCH_NAME" "$ISSUE_NUMBER"
You can’t perform that action at this time.
0 commit comments