Skip to content

Commit bd8893b

Browse files
authored
Merge pull request #25 from chancancode/patch-1
Provide default for GITHUB_TOKEN
2 parents deda201 + 6a22147 commit bd8893b

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,9 @@ jobs:
3939
- name: Remove old artifacts
4040
uses: c-hive/gha-remove-artifacts@v1
4141
with:
42-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4342
age: '1 month'
4443
skip-tags: true
4544
```
46-
_Note: `secrets.GITHUB_TOKEN` is a repository-level access token already provided by the Actions framework, you don't need to set any secrets._
4745
4846
## Conventions
4947

action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ inputs:
1111
GITHUB_TOKEN:
1212
description: 'Access token for the repository, available under the same name in secrets.'
1313
required: true
14+
default: ${{ github.token }}
1415
skip-tags:
1516
description: 'true/false. If enabled, tag build artifacts (e.g. release artifacts) will be kept.'
1617
required: false

0 commit comments

Comments
 (0)