Skip to content

Commit

Permalink
Fixes dependabot ci (#885)
Browse files Browse the repository at this point in the history
* chore: makes a better fix to dependabot formatting.

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.

* chore: nit.
  • Loading branch information
jcchavezs authored Oct 9, 2023
1 parent 1b97ecc commit be1236b
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-uncommited
uses: mskri/check-uncommitted-changes-action@v1.0.1
- name: Commit and push changes
if: steps.check-uncommited.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 be1236b

Please sign in to comment.