Skip to content

Commit dafc9f9

Browse files
committed
feat: add default token
1 parent 6b67656 commit dafc9f9

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Diff for: .github/workflows/ci.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,15 @@ jobs:
4343
- name: Delete (specific, glob disabled)
4444
uses: ./
4545
with:
46-
token: ${{ secrets.GITHUB_TOKEN }}
4746
name: my-artifact
4847
useGlob: false
4948

5049
- name: Delete (pattern, glob enabled)
5150
uses: ./
5251
with:
53-
token: ${{ secrets.GITHUB_TOKEN }}
5452
name: my-*
5553

56-
- name: Delete (specific, glob enabled)
54+
- name: Delete (specific, glob enabled, and token specified)
5755
uses: ./
5856
with:
5957
token: ${{ secrets.GITHUB_TOKEN }}

Diff for: action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ inputs:
77
token:
88
description: GitHub token with read and write access to actions for the repository.
99
required: true
10+
default: ${{ github.token }}
1011
useGlob:
1112
description: Indicates whether the name, or names, should be treated as glob patterns.
1213
required: false
@@ -21,4 +22,3 @@ runs:
2122
branding:
2223
icon: trash-2
2324
color: red
24-

0 commit comments

Comments
 (0)