From c907e5279a29274d394461b11721620c5d61baaf Mon Sep 17 00:00:00 2001 From: Martin Costello Date: Sun, 9 Jul 2023 18:04:16 +0100 Subject: [PATCH] Simplify condition Use `ref_name` instead of formatting to compare to the `ref`. --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f39e27d081f..3cd86dbe6ae 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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: