Skip to content

Commit 73ab92a

Browse files
committed
ci: Fix player version update on release
The v3.2.7 and v3.3.5 releases went out without updating the version number in lib/player.js. This fixes the workflow to match the release-please branch name, and changes the workflow to fail if the branch name changes again in the future.
1 parent 6ac1d9c commit 73ab92a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/release-please.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@ jobs:
2828
- name: Custom update Player version
2929
if: steps.release.outputs.release_created == false
3030
run: |
31-
# Check out the branch that release-please created, if it exists.
31+
# Check out the branch that release-please created.
32+
# If it does not exist, FAIL!
3233
git fetch
33-
git checkout release-please--branches--${{ github.ref_name }} || exit 0
34+
git checkout release-please--branches--${{ github.ref_name }}--components--shaka-player || exit 1
3435
# If it does exist, update lib/player.js in the PR branch, so that the
3536
# -uncompiled tag remains in the player version in that context.
3637
VERSION="v$(jq -r .version package.json)-uncompiled"

0 commit comments

Comments
 (0)