ci: dynamically check if ref contains default branch
This commit is contained in:
parent
65356499c0
commit
2e2abd41bc
1 changed files with 1 additions and 1 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
|
@ -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: |
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue