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