1
0
mirror of https://github.com/actions/checkout.git synced 2026-06-26 18:03:53 +08:00

Compare commits

...

4 Commits

Author SHA1 Message Date
David Zülke
8422ea3448 Merge 89616df839 into ff7abcd0c3 2025-08-13 16:36:40 +02:00
Salman Chishti
ff7abcd0c3 Update README to include Node.js 24 support details and requirements (#2248)
* Update README to include Node.js 24 support details and requirements

* Update
2025-08-13 13:57:25 +01:00
David Zülke
89616df839 Undo head.ref to head.sha change
That'd actually introduce a potential race condition.
2025-08-13 12:04:09 +02:00
David Zülke
2b2b6d210d Document outputs in README.md
And use ref, not sha, for the PR checkout example, so that the checkout does not result in a detached HEAD.
2025-07-09 15:34:44 +02:00

View File

@@ -2,7 +2,11 @@
# Checkout V5
Checkout v5 now supports Node.js 24
## What's new
- Updated to the node24 runtime
- This requires a minimum Actions Runner version of [v2.327.1](https://github.com/actions/runner/releases/tag/v2.327.1) to run.
# Checkout V4
@@ -154,9 +158,10 @@ Please refer to the [release page](https://github.com/actions/checkout/releases/
# Scenarios
- [Checkout V5](#checkout-v5)
- [What's new](#whats-new)
- [Checkout V4](#checkout-v4)
- [Note](#note)
- [What's new](#whats-new)
- [What's new](#whats-new-1)
- [Usage](#usage)
- [Scenarios](#scenarios)
- [Fetch only the root files](#fetch-only-the-root-files)
@@ -344,6 +349,12 @@ jobs:
*NOTE:* The user email is `{user.id}+{user.login}@users.noreply.github.com`. See users API: https://api.github.com/users/github-actions%5Bbot%5D
# Outputs
The `checkout` action provides the following outputs that can be referenced in later steps:
- `ref`, the Git ref that was checked out (not available if the checkout resulted in a detached `HEAD`)
- `sha`, the SHA of the commit that was checked out
# Recommended permissions
When using the `checkout` action in your GitHub Actions workflow, it is recommended to set the following `GITHUB_TOKEN` permissions to ensure proper functionality, unless alternative auth is provided via the `token` or `ssh-key` inputs: