Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: fix ref if main #55

Merged
merged 14 commits into from
May 14, 2024
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
Loading