From ba7657e20fd8b690df61272c116dbc834f10aae8 Mon Sep 17 00:00:00 2001 From: GuillaumeFalourd Date: Fri, 7 Jan 2022 10:19:40 -0300 Subject: [PATCH] update ubuntu workflow with remote test Signed-off-by: GuillaumeFalourd --- action.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/action.yml b/action.yml index bf798d5..c5a9015 100644 --- a/action.yml +++ b/action.yml @@ -128,13 +128,16 @@ runs: git config --global user.name "${{ inputs.name }}" git config -l | grep 'http\..*\.extraheader' | cut -d= -f1 | xargs -L1 git config --unset-all git clone "https://${{ inputs.access_token }}@github.com/$DESTINATION_OWNER/$DESTINATION_REPOSITORY.git" "$CLONE_DIRECTORY" - ls -la "$CLONE_DIRECTORY" echo - echo "##### Copying contents to destination Github repository #####" - cp ${{ inputs.files }} $CLONE_DIRECTORY + echo "##### Copying contents to remote Github repository #####" + echo ""##### Current repo content #####" + ls -lha + cp -rvf ${{ inputs.files }} $CLONE_DIRECTORY cd "$CLONE_DIRECTORY" + echo ""##### Remote repo content after copying files #####" + ls -la "$CLONE_DIRECTORY" REMOTE_URL=https://$DESTINATION_OWNER:${{ inputs.access_token }}@github.com/$DESTINATION_OWNER/$DESTINATION_REPOSITORY git remote set-url origin $REMOTE_URL