Fix publishing artifacts from the main branch (#6290)

Previously an `event` filter was applied to lookup the merge queue's
github run ID but this filter doesn't work after #6288. The filter isn't
strictly necessary, though, so remove it.
This commit is contained in:
Alex Crichton
2023-04-26 13:15:30 -05:00
committed by GitHub
parent d75adc4421
commit 57dabd3b0b

View File

@@ -18,7 +18,7 @@ jobs:
sha=${{ github.sha }}
run_id=$(
gh api -H 'Accept: application/vnd.github+json' \
/repos/${{ github.repository }}/actions/workflows/main.yml/runs\?event=push\&exclude_pull_requests=true \
/repos/${{ github.repository }}/actions/workflows/main.yml/runs\?exclude_pull_requests=true \
| jq '.workflow_runs' \
| jq "map(select(.head_commit.id == \"$sha\"))[0].id" \
)