Change test action yaml to reset correctly.

This commit is contained in:
Ottermandias 2022-06-12 00:43:38 +02:00
parent 28b7bf91bc
commit 7fea8d3854

View file

@ -77,8 +77,8 @@ jobs:
git config --global user.name "Actions User" git config --global user.name "Actions User"
git config --global user.email "actions@github.com" 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 add repo.json
git commit -m "[CI] Updating repo.json for ${{ github.ref }}" || true git commit -m "[CI] Updating repo.json for ${{ github.ref }}" || true
git push origin test || true git push origin test -f || true