From 2e2abd41bccd051ffc07ce94a0c785766d81fd19 Mon Sep 17 00:00:00 2001 From: ayntgl <90600421+ayntgl@users.noreply.github.com> Date: Wed, 2 Mar 2022 23:56:58 +0400 Subject: [PATCH] ci: dynamically check if ref contains default branch --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cee5015..68a942f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,7 +25,7 @@ jobs: run: make build - uses: actions/upload-artifact@v2 - if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} + if: ${{ github.event_name == 'push' && github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }} with: name: discordo_${{ runner.os }}_${{ runner.arch }} path: |