Skip to content

Commit

Permalink
Simplify condition
Browse files Browse the repository at this point in the history
Use `ref_name` instead of formatting to compare to the ref.
  • Loading branch information
martincostello committed Jul 9, 2023
1 parent 9997908 commit 5cd89e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ jobs:
runs-on: ubuntu-latest
if: |
github.event.repository.fork == false &&
(github.ref == format('refs/heads/{0}', github.event.repository.default_branch) ||
(github.ref_name == github.event.repository.default_branch ||
startsWith(github.ref, 'refs/tags/v'))
steps:

Expand Down

0 comments on commit 5cd89e5

Please sign in to comment.