[TEST] [NO MERGE] add release checklist commenter #107
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## DO NOT EDIT! | |
# This file was provisioned by Terraform | |
# File origin: https://github.com/Arrow-air/tf-github/tree/main/src/templates/rust-all/.github/workflows/autosquash.yml | |
name: Auto-squash | |
on: | |
pull_request: | |
branches: | |
- 'develop' | |
- 'main' | |
permissions: | |
contents: write | |
jobs: | |
autosquash: | |
name: Autosquash | |
runs-on: ubuntu-latest | |
steps: | |
- name: Import Arrow bot's GPG key for signing commits | |
id: import-gpg | |
uses: crazy-max/ghaction-import-gpg@v5 | |
with: | |
gpg_private_key: ${{ secrets.COMMITBOT_GPG_PRIVATE_KEY }} | |
passphrase: ${{ secrets.COMMITBOT_GPG_PASSPHRASE }} | |
git_config_global: true | |
git_user_signingkey: true | |
git_commit_gpgsign: true | |
git_tag_gpgsign: true | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.head_ref }} | |
token: ${{ secrets.COMMITBOT_GITHUB_TOKEN }} | |
fetch-depth: 0 | |
- name: Automatic Rebase Autosquash | |
run: | | |
git rebase -i --autosquash origin/${{ github.base_ref }} | |
git push -f | |
env: | |
GIT_AUTHOR_NAME: ${{ steps.import-gpg.outputs.name }} | |
GIT_AUTHOR_EMAIL: ${{ steps.import-gpg.outputs.email }} | |
GIT_COMMITTER_NAME: ${{ steps.import-gpg.outputs.name }} | |
GIT_COMMITTER_EMAIL: ${{ steps.import-gpg.outputs.email }} | |
# git rebase with auto squash will be a noop if not run in interactive mode. | |
# using ':' or 'true' as the sequence editor allows us to automatically apply the squash actions | |
# https://git-scm.com/docs/git-config#Documentation/git-config.txt-sequenceeditor | |
GIT_SEQUENCE_EDITOR: ':' |