Skip to content

Commit

Permalink
Reinstated automatic-merge to use ADMIN_TOKEN
Browse files Browse the repository at this point in the history
  • Loading branch information
atteggiani committed Sep 9, 2024
1 parent 88054da commit ce4f4f4
Showing 1 changed file with 6 additions and 17 deletions.
23 changes: 6 additions & 17 deletions .github/workflows/automatic_merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,19 @@ on:
jobs:
auto-merge:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repo
uses: actions/checkout@v4
uses: actions/checkout@master
with:
ref: main
ref: main
fetch-depth: 0

- name: Import GPG settings
uses: crazy-max/ghaction-import-gpg@01dd5d3ca463c7f10f7f4f7b4f177225ac661ee4 # v6.1.0
with:
gpg_private_key: ${{ secrets.GH_ACTIONS_BOT_GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GH_ACTIONS_BOT_GPG_PASSPHRASE }}
git_config_global: true
git_committer_name: ${{ vars.GH_ACTIONS_BOT_GIT_USER_NAME }}
git_committer_email: ${{ vars.GH_ACTIONS_BOT_GIT_USER_EMAIL }}
git_user_signingkey: true
git_commit_gpgsign: true
git_tag_gpgsign: true
token: ${{ secrets.ADMIN_TOKEN }}

- name: Merge development to main
run: |
git config user.name "GitHub Actions"
git config user.email "[email protected]"
git config --list
git merge --no-ff -X theirs origin/development -m "Automatically merge 'development' to 'main'.
Merge commit issued by the automatic_merge workflow."
git push origin main
git push origin main

0 comments on commit ce4f4f4

Please sign in to comment.