Skip to content

Commit

Permalink
chore: makes a better fix to dependabot formatting.
Browse files Browse the repository at this point in the history
Currently we are aiming to ammend the PR with format changes right after it's been opened, however that is inconvenient because a change in this workflow won't trigger the command.
  • Loading branch information
jcchavezs committed Oct 9, 2023
1 parent 1b97ecc commit 76b64e9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/fix-dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Fixes dependabot lint
on:
pull_request:
types: [opened]
types: [opened, synchronize]
branches:
- main
jobs:
Expand All @@ -17,8 +17,12 @@ jobs:
cache: true
- name: Format code
run: go run mage.go format
- name: Check for uncommitted changes
id: check-changes
uses: mskri/check-uncommitted-changes-action@v1.0.1
- name: Commit and push changes
if: steps.check-changes.outputs.outcome == failure()
uses: devops-infra/action-commit-push@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
ammend: true
commit_message: "chore: run mage format"

0 comments on commit 76b64e9

Please sign in to comment.