From 6ed50e7678d00d0e34a5c0f24b4b9e7e2a5d277e Mon Sep 17 00:00:00 2001 From: spaceface Date: Mon, 5 Apr 2021 17:12:07 +0200 Subject: [PATCH] ci: add git authentication to the vc job (#9599) --- .github/workflows/gen_vc.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/gen_vc.yml b/.github/workflows/gen_vc.yml index d6038c4599..f6a973a411 100644 --- a/.github/workflows/gen_vc.yml +++ b/.github/workflows/gen_vc.yml @@ -14,11 +14,15 @@ jobs: run: make - name: Regenerate v.c and v_win.c run: | + git config http.sslVerify false + git config --local user.email "github-actions[bot]@users.noreply.github.com" + git config --local user.name "github-actions[bot]" + COMMIT_HASH=$(git rev-parse --short HEAD) COMMIT_MSG=$(git log -1 --oneline --pretty='%s' HEAD) rm -rf vc - git clone https://github.com/vlang/vc + git clone https://${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN }}@github.com/vlang/vc.git rm -rf vc/v.c vc/v_win.c