From 84aabc3f5d8276a806c3b68ec35029179c3a5a4e Mon Sep 17 00:00:00 2001 From: scott45 Date: Mon, 2 Dec 2024 12:41:59 +0300 Subject: [PATCH] feat: test e2e with pr creation --- .github/workflows/publish.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 80f6567..d603165 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -77,16 +77,16 @@ jobs: - name: Push Changes in package.json and make PRs run: | export GH_USERNAME=${{ secrets.GH_USERNAME }} - export GH_TOKEN=${{ secrets.GITHUB_TOKEN }} + export GH_TOKEN=${{ secrets.FRMS_COE_STARTUP }} git config --global user.name ${{ secrets.GH_USERNAME }} # Clear the GITHUB_TOKEN environment variable and use a temporary file for gh authentication - echo "${{ secrets.GITHUB_TOKEN }}" > /tmp/gh_token + echo "${{ secrets.FRMS_COE_STARTUP }}" > /tmp/gh_token unset GITHUB_TOKEN unset GH_TOKEN gh auth login --with-token < /tmp/gh_token - git clone https://${{ secrets.GH_USERNAME }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git + git clone https://${{ secrets.GH_USERNAME }}:${{ secrets.FRMS_COE_STARTUP }}@github.com/${{ github.repository }}.git REPO_NAME=$(basename -s .git https://github.com/${{ github.repository }}.git) cd $REPO_NAME echo "Currently in repository directory: $(pwd)"