From 7852058eeee10d857e59ce41f3cb465a70c96ae0 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Thu, 6 May 2021 08:44:56 -0400 Subject: [PATCH] Fixed bug reading username ``` fatal: could not read Username for 'github.com': No such device or address ``` --- action.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/action.yml b/action.yml index 71cb529b..d04e2ee2 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 }}"