chore: runs formatter on dependabot changes. #1
Workflow file for this run
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: 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" |