From 693902ff00100970f0610be9d229ae8a725af3e9 Mon Sep 17 00:00:00 2001 From: Julian Gruber Date: Fri, 30 Aug 2024 15:08:43 +0200 Subject: [PATCH] Fix dependabot commits not deploying. Closes #261 --- .github/workflows/ci.yml | 4 ++++ .github/workflows/dependabot-deploy-check.yml | 15 +++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 .github/workflows/dependabot-deploy-check.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fb00051b..c743cf8e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,6 +4,10 @@ on: branches: [main] pull_request: branches: [main] + workflow_run: + workflows: ["Dependabot Deploy Check"] + types: + - completed jobs: build: diff --git a/.github/workflows/dependabot-deploy-check.yml b/.github/workflows/dependabot-deploy-check.yml new file mode 100644 index 00000000..bf9c5ab5 --- /dev/null +++ b/.github/workflows/dependabot-deploy-check.yml @@ -0,0 +1,15 @@ +# https://github.com/dependabot/dependabot-core/issues/3253#issuecomment-852541544 +# This workflow doesn't have access to secrets and has a read-only token +# It will trigger `deploy`, which has permissions +name: Dependabot Deploy Check +on: + push: + branches: + - main + +jobs: + check-dependabot: + runs-on: ubuntu-latest + if: ${{ github.actor == 'dependabot[bot]' }} + steps: + - run: echo "Commit created by Dependabot"