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:
parent
092ab2a70b
commit
06107f8040
2 changed files with 10 additions and 0 deletions
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
|
|
@ -5,6 +5,7 @@ on:
|
|||
branches: [main]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
test:
|
||||
|
|
|
|||
9
.github/workflows/dependabot-auto-merge.yml
vendored
9
.github/workflows/dependabot-auto-merge.yml
vendored
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue