Skip to content

Commit

Permalink
feat: test e2e with pr creation
Browse files Browse the repository at this point in the history
  • Loading branch information
scott45 committed Dec 2, 2024
1 parent d787cb4 commit 84aabc3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down

0 comments on commit 84aabc3

Please sign in to comment.