From dafc9f9baa6d4027aa53a4e9a84f1671e3653f3f Mon Sep 17 00:00:00 2001 From: Richard Herman Date: Sat, 13 Jan 2024 15:13:48 +0000 Subject: [PATCH] feat: add default token --- .github/workflows/ci.yml | 4 +--- action.yml | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) 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 -