Skip to content

Commit

Permalink
ci: fix ref
Browse files Browse the repository at this point in the history
  • Loading branch information
uhobeike committed May 14, 2024
1 parent 47c17a8 commit 1707ffb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 1707ffb

Please sign in to comment.