[reformat][adyen-sdk-automation] automated change #407
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
name: Go Format | |
on: | |
push: | |
branches: | |
- 'sdk-automation/models' | |
jobs: | |
format: | |
if: ${{ ! startsWith(github.event.head_commit.message, 'style(fmt)') }} | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | |
with: | |
token: ${{ secrets.ADYEN_AUTOMATION_BOT_ACCESS_TOKEN }} | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: 1.18 | |
- run: make fmt | |
- run: | | |
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 |