From d88d269dbbc003a5f3d0d9f83c342d231b207f35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Carlos=20Ch=C3=A1vez?= Date: Mon, 25 Sep 2023 10:49:18 +0200 Subject: [PATCH] chore: runs formatter on dependabot changes. --- .github/workflows/fix-dependabot.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/fix-dependabot.yml diff --git a/.github/workflows/fix-dependabot.yml b/.github/workflows/fix-dependabot.yml new file mode 100644 index 000000000..2a885279f --- /dev/null +++ b/.github/workflows/fix-dependabot.yml @@ -0,0 +1,24 @@ +name: Fixes dependabot lint +on: + pull_request: + types: [opened] + branches: + - main +jobs: + change-and-push: + runs-on: ubuntu-latest + if: ${{ github.actor == 'dependabot[bot]'}} + steps: + - uses: actions/checkout@v3 + - name: Install Go + uses: actions/setup-go@v3 + with: + go-version: v1.18.x + cache: true + - name: Format code + run: go run mage.go format + - name: Commit and push changes + uses: devops-infra/action-commit-push@master + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + commit_message: "chore: go mod tidy"