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 authored Jul 9, 2023
1 parent 4f5aa3b commit c907e52
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 @@ -131,7 +131,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/'))
steps:

Expand Down

0 comments on commit c907e52

Please sign in to comment.