From 16acdfd6fd7b9b90ce08b52d77f65a7668a58c1c Mon Sep 17 00:00:00 2001 From: ange Date: Fri, 10 May 2024 11:59:49 +0200 Subject: [PATCH] feat: remove unneeded env --- action.yaml | 2 -- checkout.sh | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/action.yaml b/action.yaml index 005c4b4..6b62917 100644 --- a/action.yaml +++ b/action.yaml @@ -8,5 +8,3 @@ runs: steps: - name: Checkout run: ${{ gitea.action_path }}/checkout.sh - env: - ACTION_TOKEN: ${{ inputs.token }} diff --git a/checkout.sh b/checkout.sh index 4b3d73c..9d9075a 100755 --- a/checkout.sh +++ b/checkout.sh @@ -1,6 +1,6 @@ #!/bin/bash -e -URL="${GITHUB_SERVER_URL/\/\//\/\/$GITHUB_REPOSITORY_OWNER:$ACTION_TOKEN@}/$GITHUB_REPOSITORY" +URL="${GITHUB_SERVER_URL/\/\//\/\/$GITHUB_REPOSITORY_OWNER:$INPUT_TOKEN@}/$GITHUB_REPOSITORY" git init -b main git remote add origin "$URL"