diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d2aee0085..055bcf372 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -281,7 +281,7 @@ jobs: - name: Trigger Snap workflow run: | - gh workflow run snap.yml --ref ${{ github.sha }} --field source-tarball-id=${{ needs.build-dist.outputs.artifact-id }} + gh workflow run snap.yml --ref ${{ github.ref_name || 'main' }} --field source-tarball-id=${{ needs.build-dist.outputs.artifact-id }} env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}