From c8e229f53063ecf4ddb472d8eed44d3d2fa724f7 Mon Sep 17 00:00:00 2001 From: FonduemangVI <15520607+FonduemangVI@users.noreply.github.com> Date: Mon, 20 May 2024 20:59:59 +1000 Subject: [PATCH 1/2] testing --- .github/workflows/deploy.yml | 1 + .github/workflows/update_contributors.yml | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index d352a760c..299ba8273 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -30,6 +30,7 @@ jobs: run: mkdocs build deploy: + if: github.event.workflow_run.event == 'push' && contains(fromJson('["master", "main"]'), github.event.workflow_run.head_branch) needs: build name: Deploy docs runs-on: ubuntu-latest diff --git a/.github/workflows/update_contributors.yml b/.github/workflows/update_contributors.yml index 36e4aa530..f0d326c02 100644 --- a/.github/workflows/update_contributors.yml +++ b/.github/workflows/update_contributors.yml @@ -7,7 +7,6 @@ on: jobs: update_contributors: - if: github.event_name == 'push' && contains(fromJson('["refs/heads/master", "refs/heads/main"]'), github.ref) runs-on: ubuntu-latest steps: - name: Checkout code From 089a80789af0c14fb827fd85ca8ec8d1dbcbff24 Mon Sep 17 00:00:00 2001 From: FonduemangVI <15520607+FonduemangVI@users.noreply.github.com> Date: Mon, 20 May 2024 21:01:17 +1000 Subject: [PATCH 2/2] fix run --- .github/workflows/update_contributors.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/update_contributors.yml b/.github/workflows/update_contributors.yml index f0d326c02..98537b3db 100644 --- a/.github/workflows/update_contributors.yml +++ b/.github/workflows/update_contributors.yml @@ -1,9 +1,6 @@ name: Update contributors -on: - push: - branches: - - master +on: [push, pull_request] jobs: update_contributors: