ci: dynamically check if ref contains default branch

This commit is contained in:
ayntgl 2022-03-02 23:56:58 +04:00 • committed by GitHub
parent 65356499c0
commit 2e2abd41bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: |