Skip to content

Commit a96a6d0

Browse files
committed
fix(github-actions): github page workflow
Fixes #309 when the player version number being always one version behind when a new version of the player, and thus the GitHub page, is released. - Runs the `Github Page` workflow only when the `Pre-release tag` has completed successfully. This should ensure that the version property in the package.json file is up to date before the GitHub page is published.
1 parent ea54db1 commit a96a6d0

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/github-page.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
name: Github Page
22

33
on:
4-
push:
5-
branches:
6-
- main
4+
workflow_run:
5+
workflows: ["Pre-release tag"]
6+
types: [completed]
77

88
jobs:
99
github-page:
10+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
11+
1012
runs-on: ubuntu-latest
1113

1214
steps:

0 commit comments

Comments
 (0)