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

Support jobs that do not use checkout #6

Merged
merged 1 commit into from
Jan 16, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ runs:
} >>"$GITHUB_OUTPUT"
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
# An alternate version of `/repos/{owner}/{repo}/actions/runs/${run_id}/attempts/${run_attempt}/jobs`
# which reports only jobs which were actually executed. Mainly, this results in
# different values for `id`, `run_attempt`, and `created_at` being returned.
Expand Down Expand Up @@ -115,6 +116,7 @@ runs:
} >>"$GITHUB_OUTPUT"
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
run_id: ${{ github.run_id }}
run_attempt: ${{ github.run_attempt }}
- name: Determine matrix jobs
Expand Down Expand Up @@ -149,6 +151,7 @@ runs:
} >>"$GITHUB_OUTPUT"
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
artifact_jobs: ${{ steps.artifact-jobs.outputs.json }}
executed_jobs: ${{ steps.executed-jobs.outputs.json }}
- name: Upload sync artifact
Expand Down Expand Up @@ -198,6 +201,7 @@ runs:
echo "Waited for other jobs for $((end-start)) seconds" >&2
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
matrix_jobs: ${{ steps.matrix-jobs.outputs.json }}
run_id: ${{ github.run_id }}
self_job_id: ${{ steps.job.outputs.id }}
Expand Down
Loading