Skip to content

Commit

Permalink
Publish after sets have been updated
Browse files Browse the repository at this point in the history
Thanks to @Karthik99999 for the `workflow_run` idea
  • Loading branch information
thejetou committed Nov 7, 2023
1 parent ec4eb96 commit 040e808
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
name: Tests

on:
workflow_run:
workflows: [Update Sets]
types: [completed]
workflow_dispatch:
push:
branches: [ master ]
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 040e808

Please sign in to comment.