diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8d251d9..9d56504 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -60,7 +60,7 @@ jobs: async function run() { const { owner, repo } = context.repo; const workflow_id = 'rerun.yml'; - const ref = ('${{ github.head_ref }}' === 'main') ? 'main' : '${{ github.head_ref }}'; + const ref = ('${{ github.head_ref }}' === '' || '${{ github.head_ref }}' === 'main') ? 'main' : '${{ github.head_ref }}'; const run_id = context.runId; try {