From c475700660fd630f895b97a5fc07a3df5bdbef90 Mon Sep 17 00:00:00 2001 From: Sheetal Date: Thu, 4 Jan 2024 10:07:11 -0700 Subject: [PATCH] remove extraheader --- .github/workflows/demo.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/demo.yml b/.github/workflows/demo.yml index aaed9d1..dbc1d0a 100644 --- a/.github/workflows/demo.yml +++ b/.github/workflows/demo.yml @@ -46,6 +46,10 @@ jobs: - name: Deploy run: | echo "Deploying..." + + # adding as per https://stackoverflow.com/questions/64270867/auth-error-trying-to-copy-a-repo-with-github-actions + git config -l | grep 'http\..*\.extraheader' | cut -d= -f1 | xargs -L1 git config --unset-all + git clone https://github-actions[bot]:${{ secrets.GITHUB_TOKEN }}@github.com/sheetal-purple/another repo # clone repo to track history mv repo/.git . # move cloned git history to root rm -rf repo @@ -54,11 +58,13 @@ jobs: git add --force . git commit -m "add contents of dist-files v${{ env.SPEC_VERSION }}" git log - echo "${{ secrets.GITHUB_TOKEN }}" > token.txt - # Authorize GitHub CLI for the current repository and - # create a pull-requests containing the updates. - gh auth login --with-token < token.txt + # relogin did not work as suggested in https://github.com/orgs/community/discussions/49745 + # echo "${{ secrets.GITHUB_TOKEN }}" > token.txt + + # # Authorize GitHub CLI for the current repository and + # # create a pull-requests containing the updates. + # gh auth login --with-token < token.txt git tag -a v${{ env.SPEC_VERSION }} -m "Update v${{ env.SPEC_VERSION }}" git push origin master --follow-tags --force