diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fbad3c82..3b1efa01 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -75,10 +75,10 @@ jobs: git config --global user.name "Actions User" git config --global user.email "actions@github.com" - git fetch origin master && git fetch origin test && git branch -f test origin/master && git checkout master + git fetch origin master && git fetch origin test && git checkout master git add repo.json git commit -m "[CI] Updating repo.json for ${{ github.ref }}" || true git push origin master || true - git checkout test + git branch -f test origin/master && git checkout test git push origin test -f || true