From 064c95b475b4e62195ad5ec3a8ff819811ac899c Mon Sep 17 00:00:00 2001 From: Pierre Jacquier Date: Tue, 25 Apr 2023 05:43:45 -0400 Subject: [PATCH] One more CI fix (#119) * One more CI fix * Remove test code --- .github/workflows/ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 30e001a..75751a0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,8 +27,11 @@ jobs: - name: Set release version to .json files and commit to main if: github.event_name == 'release' + env: + BRANCH: main run: | - git checkout main + git fetch origin + git checkout $BRANCH echo "$(jq --arg v "${RELEASE#v}" '.version=$v' package.json --indent 4)" > package.json echo "$(jq --arg v "${RELEASE#v}" '.version=$v' public/manifest.json --indent 4)" > public/manifest.json git diff @@ -36,7 +39,7 @@ jobs: git config user.name github-actions git config user.email github-actions@github.com git commit -m "Align versions with $RELEASE" - git push + git push origin $BRANCH - run: yarn build