Skip to content

Commit

Permalink
ci: Enable PR merge as admin (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
juanjjaramillo authored Oct 3, 2023
1 parent f1f15fe commit 1514f27
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

- name: Promote draft release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
echo "$( gh release list --limit 5)"
tagName=$( gh release list | grep Draft | awk -F' ' '{ print $3; }' )
Expand Down Expand Up @@ -71,7 +71,9 @@ jobs:
- name: Create pull request, skip release notes, merge
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Default GITHUB_TOKEN does not allow to merge PRs with admin privileges
# Source: https://stackoverflow.com/questions/74274130/allow-github-actions-to-merge-prs-on-protected-branch
GITHUB_TOKEN: ${{ secrets.ADMIN_MERGE_TOKEN }}
run: |
gh pr create \
--label "Type/skip" \
Expand Down

0 comments on commit 1514f27

Please sign in to comment.