From 2526bde5c79e649c1f9701d11115ac0c1da58d07 Mon Sep 17 00:00:00 2001 From: Michael Paul Date: Tue, 5 Dec 2023 13:32:28 +0100 Subject: [PATCH] Negation fix (#276) * Negation fix * commit as AdyenAutomationBot --- .github/workflows/format.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 7c6675543..4c552ce81 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -7,17 +7,21 @@ on: jobs: format: - if: ! startsWith(github.event.head_commit.message, 'style(fmt)') + if: ${{ ! startsWith(github.event.head_commit.message, 'style(fmt)') }} + permissions: + contents: write runs-on: ubuntu-latest steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 + with: + token: ${{ secrets.ADYEN_AUTOMATION_BOT_ACCESS_TOKEN }} - uses: actions/setup-go@v4 with: go-version: 1.18 - run: make fmt - run: | - git config user.name github-actions - git config user.email github-actions@github.com + git config user.name AdyenAutomationBot + git config user.email "${{ secrets.ADYEN_AUTOMATION_BOT_EMAIL }}" git add . git commit -m "style(fmt): code formatted" - git push \ No newline at end of file + git push