From 3f924ea8182276283b753f87ab493f2d7811c0b8 Mon Sep 17 00:00:00 2001 From: Sean Perry Date: Thu, 30 May 2024 12:46:16 -0700 Subject: [PATCH] feat: fix workflow error for dependabot secrets issue --- .github/workflows/check_bot.yml | 12 ++++++++++++ .github/workflows/env_test.yml | 1 + .github/workflows/env_test_bot.yml | 0 3 files changed, 13 insertions(+) create mode 100644 .github/workflows/check_bot.yml create mode 100644 .github/workflows/env_test_bot.yml diff --git a/.github/workflows/check_bot.yml b/.github/workflows/check_bot.yml new file mode 100644 index 00000000..ad182c8f --- /dev/null +++ b/.github/workflows/check_bot.yml @@ -0,0 +1,12 @@ +### .github/workflows/dependabot_pr.yml +### This workflow doesn't have access to secrets and has a read-only token +name: Dependabot PR Check +on: + pull_request + +jobs: + check-dependabot: + runs-on: ubuntu-latest + if: ${{ github.actor == 'dependabot[bot]' }} + steps: + - run: echo "PR created by Dependabot" \ No newline at end of file diff --git a/.github/workflows/env_test.yml b/.github/workflows/env_test.yml index 9f304890..1df02706 100644 --- a/.github/workflows/env_test.yml +++ b/.github/workflows/env_test.yml @@ -9,6 +9,7 @@ on: jobs: build: + if: ${{ github.actor != 'dependabot[bot]' }} # continue-on-error: true strategy: matrix: diff --git a/.github/workflows/env_test_bot.yml b/.github/workflows/env_test_bot.yml new file mode 100644 index 00000000..e69de29b