From f6a94c64bafabc1f42692f503cecfbca59eca84f Mon Sep 17 00:00:00 2001 From: Leo Singer Date: Wed, 13 Mar 2024 14:25:13 -0400 Subject: [PATCH] Fix `if` condition for `deploy` job See https://stackoverflow.com/questions/64781462/github-actions-default-branch-variable. --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 11845bfcb..175eba9d3 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -44,7 +44,7 @@ jobs: deploy: name: Deploy to AWS needs: build - if: github.event_name == 'push' && github.ref == github.event.repository.default_branch + if: github.event_name == 'push' && github.ref == format('refs/heads/{0}', github.event.repository.default_branch) strategy: fail-fast: false matrix: