1
0
Fork 0
mirror of https://github.com/imjasonh/govulncheck-action synced 2026-07-18 06:35:32 +00:00

attempt fix

Signed-off-by: Jason Hall <imjasonh@gmail.com>
This commit is contained in:
Jason Hall 2026-02-21 02:13:32 -05:00
parent 092ab2a70b
commit 06107f8040
2 changed files with 10 additions and 0 deletions

View file

@ -5,6 +5,7 @@ on:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
test:

View file

@ -5,6 +5,7 @@ on: pull_request
permissions:
contents: write
pull-requests: write
actions: write
jobs:
dependabot:
@ -28,6 +29,7 @@ jobs:
run: npm run build
- name: Commit and push changes
id: commit
run: |
if [ -n "$(git status --porcelain dist/)" ]; then
git config --global user.name "dependabot[bot]"
@ -35,8 +37,15 @@ jobs:
git add dist/
git commit -m "chore: rebuild dist"
git push
echo "pushed=true" >> "$GITHUB_OUTPUT"
fi
- name: Trigger CI
if: steps.commit.outputs.pushed == 'true'
run: gh workflow run ci.yml --ref ${{ github.event.pull_request.head.ref }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Enable auto-merge for Dependabot PRs
run: gh pr merge --auto --squash "$PR_URL"
env: