From ae50fc0ea995e5a5e6c8bdcb0d4755e20cdd22a0 Mon Sep 17 00:00:00 2001 From: Yaacov Rydzinski Date: Tue, 19 Oct 2021 02:08:55 +0300 Subject: [PATCH] Use GITHUB_ACTOR environment variable in workflow (#29) --- resources/gitpublish.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/gitpublish.sh b/resources/gitpublish.sh index 1c8f33ec7a..adbfed7952 100755 --- a/resources/gitpublish.sh +++ b/resources/gitpublish.sh @@ -35,7 +35,7 @@ fi; # Create empty directory rm -rf $BRANCH -git clone -b $BRANCH -- "https://yaacovCR:${GH_TOKEN}@github.com/yaacovCR/graphql-executor.git" $BRANCH +git clone -b $BRANCH -- "https://${GITHUB_ACTOR}:${GH_TOKEN}@github.com/yaacovCR/graphql-executor.git" $BRANCH # Remove existing files first rm -rf $BRANCH/**/*