mirror of https://github.com/actions/checkout.git
Compare commits
3 Commits
8e5a89f166
...
53a7e83b6b
Author | SHA1 | Date |
---|---|---|
Mikael Finstad | 53a7e83b6b | |
Cory Miller | 44c2b7a8a4 | |
Mikael Finstad | 79a832ff0d |
|
@ -27,8 +27,8 @@ jobs:
|
|||
fetch-depth: 0
|
||||
- name: Git config
|
||||
run: |
|
||||
git config user.name github-actions
|
||||
git config user.email github-actions@github.com
|
||||
git config user.name "github-actions[bot]"
|
||||
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||
- name: Tag new target
|
||||
run: git tag -f ${{ github.event.inputs.major_version }} ${{ github.event.inputs.target }}
|
||||
- name: Push new tag
|
||||
|
|
|
@ -35,6 +35,10 @@ Please refer to the [release page](https://github.com/actions/checkout/releases/
|
|||
#
|
||||
# We recommend using a service account with the least permissions necessary. Also
|
||||
# when generating a new PAT, select the least scopes necessary.
|
||||
# For a basic restricted reference, you can use the same permissions as the
|
||||
# [`GITHUB_TOKEN` gives.](https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token)
|
||||
# This means creating a "Fine-grained personal access token" with the
|
||||
# `content` and `metadata` permissions.
|
||||
#
|
||||
# [Learn more about creating and using encrypted secrets](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets)
|
||||
#
|
||||
|
@ -279,8 +283,9 @@ jobs:
|
|||
- uses: actions/checkout@v4
|
||||
- run: |
|
||||
date > generated.txt
|
||||
git config user.name github-actions
|
||||
git config user.email github-actions@github.com
|
||||
# Note: the following account information will not work on GHES
|
||||
git config user.name "github-actions[bot]"
|
||||
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||
git add .
|
||||
git commit -m "generated"
|
||||
git push
|
||||
|
|
Loading…
Reference in New Issue