From 040e80856b0c051ca8d7da72832be88d0ccd8d9f Mon Sep 17 00:00:00 2001 From: Waleed Hassan Date: Wed, 8 Nov 2023 01:07:40 +0300 Subject: [PATCH] Publish after sets have been updated Thanks to @Karthik99999 for the `workflow_run` idea --- .github/workflows/test.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 494815dba..a846f8ba8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,6 +4,9 @@ name: Tests on: + workflow_run: + workflows: [Update Sets] + types: [completed] workflow_dispatch: push: branches: [ master ] @@ -31,7 +34,7 @@ jobs: CI: true publish: - if: ${{ github.repository == 'smogon/damage-calc' && github.event_name == 'push' }} + if: ${{ github.repository == 'smogon/damage-calc' && (github.event_name == 'push' || github.event.workflow_run.conclusion == 'success') }} needs: build runs-on: ubuntu-latest permissions: