Skip to content

Commit 44ec049

Browse files
Simplify condition
Use `ref_name` instead of formatting to compare to the `ref`.
1 parent 4f5aa3b commit 44ec049

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ jobs:
131131
runs-on: ubuntu-latest
132132
if: |
133133
github.event.repository.fork == false &&
134-
(github.ref == format('refs/heads/{0}', github.event.repository.default_branch) ||
134+
(github.ref_name == github.event.repository.default_branch ||
135135
startsWith(github.ref, 'refs/tags/'))
136136
steps:
137137

0 commit comments

Comments
 (0)