Skip to content

Commit 1ca84eb

Browse files
author
Dev-Re2906
committed
publish actions#2192
1 parent 2cee040 commit 1ca84eb

File tree

2 files changed

+2
-60
lines changed

2 files changed

+2
-60
lines changed

.github/workflows/docker-image.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ Please refer to the [release page](https://github.com/actions/checkout/releases/
143143
- [Checkout pull request HEAD commit instead of merge commit](#Checkout-pull-request-HEAD-commit-instead-of-merge-commit)
144144
- [Checkout pull request on closed event](#Checkout-pull-request-on-closed-event)
145145
- [Push a commit using the built-in token](#Push-a-commit-using-the-built-in-token)
146-
- [Push a commit to a PR using the built-in token](#Push-a-commit-to-a-PR-using-the-built-in-token)
147146

148147
## Fetch only the root files
149148

@@ -212,7 +211,7 @@ Please refer to the [release page](https://github.com/actions/checkout/releases/
212211
repository: my-org/my-tools
213212
path: my-tools
214213
```
215-
> - If your secondary repository is private or internal you will need to add the option noted in [Checkout multiple repos (private)](#Checkout-multiple-repos-private)
214+
> - If your secondary repository is private you will need to add the option noted in [Checkout multiple repos (private)](#Checkout-multiple-repos-private)
216215

217216
## Checkout multiple repos (nested)
218217

@@ -226,7 +225,7 @@ Please refer to the [release page](https://github.com/actions/checkout/releases/
226225
repository: my-org/my-tools
227226
path: my-tools
228227
```
229-
> - If your secondary repository is private or internal you will need to add the option noted in [Checkout multiple repos (private)](#Checkout-multiple-repos-private)
228+
> - If your secondary repository is private you will need to add the option noted in [Checkout multiple repos (private)](#Checkout-multiple-repos-private)
230229

231230
## Checkout multiple repos (private)
232231

@@ -289,40 +288,6 @@ jobs:
289288
```
290289
*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
291290

292-
## Push a commit to a PR using the built-in token
293-
294-
In a pull request trigger, `ref` is required as GitHub Actions checks out in detached HEAD mode, meaning it doesn’t check out your branch by default.
295-
296-
```yaml
297-
on: pull_request
298-
jobs:
299-
build:
300-
runs-on: ubuntu-latest
301-
steps:
302-
- uses: actions/checkout@v4
303-
with:
304-
ref: ${{ github.head_ref }}
305-
- run: |
306-
date > generated.txt
307-
# Note: the following account information will not work on GHES
308-
git config user.name "github-actions[bot]"
309-
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
310-
git add .
311-
git commit -m "generated"
312-
git push
313-
```
314-
315-
*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
316-
317-
# Recommended permissions
318-
319-
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:
320-
321-
```yaml
322-
permissions:
323-
contents: read
324-
```
325-
326291
# License
327292

328293
The scripts and documentation in this project are released under the [MIT License](LICENSE)

0 commit comments

Comments
 (0)