From 06107f8040b6e457c64cedc60932f2a976eafa18 Mon Sep 17 00:00:00 2001 From: Jason Hall Date: Sat, 21 Feb 2026 02:13:32 -0500 Subject: [PATCH] attempt fix Signed-off-by: Jason Hall --- .github/workflows/ci.yml | 1 + .github/workflows/dependabot-auto-merge.yml | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 38b8510..589cb79 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,6 +5,7 @@ on: branches: [main] pull_request: branches: [main] + workflow_dispatch: jobs: test: diff --git a/.github/workflows/dependabot-auto-merge.yml b/.github/workflows/dependabot-auto-merge.yml index 9797368..d9fba55 100644 --- a/.github/workflows/dependabot-auto-merge.yml +++ b/.github/workflows/dependabot-auto-merge.yml @@ -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: