Skip to content

Commit f1b2a9f

Browse files
committed
ci: Add git switch
1 parent dd74c91 commit f1b2a9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/pull_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
[[ $WAS_DIRTY = false ]] && exit 0
3636
git config --global user.name "github-actions"
3737
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
38-
git checkout ${{ github.head_ref }}
38+
git switch -c linting/${{ github.head_ref }}
3939
git add -A
4040
git commit -m "style: Apply linting rules"
4141
git push "https://${GITHUB_ACTOR}:${{ env.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git" HEAD:refs/heads/linting/${{ github.head_ref }} --force

0 commit comments

Comments
 (0)