From c182af79a53ca671cb981ffae5dabba5272aae17 Mon Sep 17 00:00:00 2001 From: Socheat Sok Date: Thu, 30 May 2024 21:30:25 +0700 Subject: [PATCH] Use github context to access token --- action.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/action.yml b/action.yml index 4dfb833..7e939f0 100644 --- a/action.yml +++ b/action.yml @@ -8,10 +8,6 @@ inputs: description: "The version to install: Default: latest" required: false default: "latest" - token: - description: "The GitHub token to use for the installation" - required: false - default: ${{ secrets.GITHUB_TOKEN }} runs: using: "composite" steps: @@ -19,5 +15,5 @@ runs: - name: Setup Flutter Version Management CLI shell: bash env: - GITHUB_TOKEN: ${{ inputs.token }} + GITHUB_TOKEN: ${{ github.token }} run: $GITHUB_ACTION_PATH/action.sh ${{ inputs.version }}