diff --git a/README.md b/README.md index 7a96d2f..6237bac 100644 --- a/README.md +++ b/README.md @@ -39,11 +39,9 @@ jobs: - name: Remove old artifacts uses: c-hive/gha-remove-artifacts@v1 with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} age: '1 month' skip-tags: true ``` -_Note: `secrets.GITHUB_TOKEN` is a repository-level access token already provided by the Actions framework, you don't need to set any secrets._ ## Conventions diff --git a/action.yml b/action.yml index 1e93f60..d7b9e3d 100644 --- a/action.yml +++ b/action.yml @@ -11,6 +11,7 @@ inputs: GITHUB_TOKEN: description: 'Access token for the repository, available under the same name in secrets.' required: true + default: ${{ github.token }} skip-tags: description: 'true/false. If enabled, tag build artifacts (e.g. release artifacts) will be kept.' required: false