diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 490a171f..89ea2b56 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -77,6 +77,7 @@ jobs: git fetch origin master git fetch origin test + git branch -f test ${{ github.sha }} git checkout master git add repo.json git commit -m "[CI] Updating repo.json for ${{ github.ref }}" || true diff --git a/.github/workflows/test_release.yml b/.github/workflows/test_release.yml index 33afd0ee..6ae471be 100644 --- a/.github/workflows/test_release.yml +++ b/.github/workflows/test_release.yml @@ -77,9 +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 branch -f test origin/master + git branch -f test ${{ github.sha }} git checkout test git add repo.json git commit -m "[CI] Updating repo.json for ${{ github.ref }}" || true