From 4c5109f08e4ed0aa9b1c61f69fa8c5432331cff2 Mon Sep 17 00:00:00 2001 From: Joey Parrish Date: Tue, 17 May 2022 17:37:01 -0700 Subject: [PATCH] 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. --- .github/workflows/release-please.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-please.yaml b/.github/workflows/release-please.yaml index 3d3d01ae3f..6f64866d61 100644 --- a/.github/workflows/release-please.yaml +++ b/.github/workflows/release-please.yaml @@ -28,9 +28,10 @@ jobs: - name: Custom update Player version if: steps.release.outputs.release_created == false run: | - # Check out the branch that release-please created, if it exists. + # Check out the branch that release-please created. + # If it does not exist, FAIL! git fetch - git checkout release-please--branches--${{ github.ref_name }} || exit 0 + git checkout release-please--branches--${{ github.ref_name }}--components--shaka-player || exit 1 # If it does exist, update lib/player.js in the PR branch, so that the # -uncompiled tag remains in the player version in that context. VERSION="v$(jq -r .version package.json)-uncompiled"