diff --git a/.github/workflows/heal.yml b/.github/workflows/heal.yml index a9067f2b6..d08ed21cb 100644 --- a/.github/workflows/heal.yml +++ b/.github/workflows/heal.yml @@ -17,7 +17,7 @@ jobs: run: git fetch --prune - name: checkout trigger branch working-directory: ${{ secrets.work_dir }} - run: git checkout --progress --force -B ${GITHUB_REF_NAME} ${GITHUB_REF} + run: git checkout --progress --force ${GITHUB_REF_NAME} - name: hard reset to origin state working-directory: ${{ secrets.work_dir }} run: git reset --hard origin/${GITHUB_REF_NAME} diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index 3278c829b..53e2369e2 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -20,7 +20,7 @@ jobs: run: git fetch --prune - name: checkout trigger branch working-directory: ${{ secrets.work_dir }} - run: git checkout --progress --force -B ${GITHUB_REF_NAME} ${GITHUB_REF} + run: git checkout --progress --force ${GITHUB_REF_NAME} - name: hard reset to origin state working-directory: ${{ secrets.work_dir }} run: git reset --hard origin/${GITHUB_REF_NAME} diff --git a/.github/workflows/staging.yml b/.github/workflows/staging.yml index b178cb4d9..42eb2df51 100644 --- a/.github/workflows/staging.yml +++ b/.github/workflows/staging.yml @@ -22,7 +22,7 @@ jobs: run: git fetch --prune - name: checkout trigger branch working-directory: ${{ secrets.work_dir }} - run: git checkout --progress --force -B ${GITHUB_REF_NAME} ${GITHUB_REF} + run: git checkout --progress --force ${GITHUB_REF_NAME} - name: hard reset to origin state working-directory: ${{ secrets.work_dir }} run: git reset --hard origin/${GITHUB_REF_NAME}