diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0e0637b..a03100c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,17 +43,15 @@ jobs: - name: Delete (specific, glob disabled) uses: ./ with: - token: ${{ secrets.GITHUB_TOKEN }} name: my-artifact useGlob: false - name: Delete (pattern, glob enabled) uses: ./ with: - token: ${{ secrets.GITHUB_TOKEN }} name: my-* - - name: Delete (specific, glob enabled) + - name: Delete (specific, glob enabled, and token specified) uses: ./ with: token: ${{ secrets.GITHUB_TOKEN }} diff --git a/action.yml b/action.yml index df2c30e..9c66be1 100644 --- a/action.yml +++ b/action.yml @@ -7,6 +7,7 @@ inputs: token: description: GitHub token with read and write access to actions for the repository. required: true + default: ${{ github.token }} useGlob: description: Indicates whether the name, or names, should be treated as glob patterns. required: false @@ -21,4 +22,3 @@ runs: branding: icon: trash-2 color: red -