diff --git a/action.yml b/action.yml index 71cb529b0e7..d04e2ee20f4 100644 --- a/action.yml +++ b/action.yml @@ -2,6 +2,10 @@ name: Changed files description: Get all changed files author: tj-actions inputs: + token: + description: 'Github token' + required: true + default: ${{ github.token }} separator: description: 'Split character for array output' required: true @@ -55,6 +59,8 @@ runs: - id: changed_files run: | set -e + + git remote set-url origin "https://${{ inputs.token }}@github.com/${{ github.repository }}" export INPUT_FILES="${{ inputs.files }}" export INPUT_SEPARATOR="${{ inputs.separator }}"