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"