diff --git a/.github/workflows/test_release.yml b/.github/workflows/test_release.yml index cdc7b5ec..bc242bf1 100644 --- a/.github/workflows/test_release.yml +++ b/.github/workflows/test_release.yml @@ -77,8 +77,8 @@ 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 checkout test && git reset --hard master + git fetch origin master && git fetch origin test && git branch -f test origin/master && git checkout test git add repo.json git commit -m "[CI] Updating repo.json for ${{ github.ref }}" || true - git push origin test || true + git push origin test -f || true