Skip to content

Commit

Permalink
updated check
Browse files Browse the repository at this point in the history
  • Loading branch information
Alfredo committed Dec 17, 2024
1 parent 0cdc226 commit 7f90cae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Switch branch
run: |
HEAD_REF="${{ github.head_ref }}"
if [ "$HEAD_REF" != "main" ]; then
if [ "$HEAD_REF" != "" && "$HEAD_REF" != "main" ]; then
git fetch origin $HEAD_REF
git switch $HEAD_REF
fi
Expand All @@ -42,7 +42,7 @@ jobs:
- name: Upload changes to base branch
run: |
HEAD_REF="${{ github.head_ref }}"
if [ "$HEAD_REF" != "main" ]; then
if [ "$HEAD_REF" != "" && "$HEAD_REF" != "main" ]; then
git config user.name "github-actions"
git config user.email "[email protected]"
git commit -am "deno formatting"
Expand Down

0 comments on commit 7f90cae

Please sign in to comment.