Skip to content

PI-2410 Update code formatter to push a single commit #2126

PI-2410 Update code formatter to push a single commit

PI-2410 Update code formatter to push a single commit #2126

Workflow file for this run

name: Formatting
on: pull_request
permissions:
contents: write
jobs:
format-code:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.BOT_GITHUB_TOKEN }}
- name: Configure git
run: |
git config --local user.name probation-integration-bot
git config --local user.email [email protected]
- name: Setup GPG commit verification
uses: crazy-max/ghaction-import-gpg@01dd5d3ca463c7f10f7f4f7b4f177225ac661ee4 # v6.1.0
with:
gpg_private_key: ${{ secrets.BOT_GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.BOT_GPG_PASSPHRASE }}
git_user_signingkey: true
git_commit_gpgsign: true
- name: Format code
uses: ./.github/actions/format-code