Skip to content

Commit

Permalink
add env
Browse files Browse the repository at this point in the history
  • Loading branch information
yliuuuu committed Jan 22, 2024
1 parent 726f69b commit d5fb11f
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/pr_to_gh_page_repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,10 @@ jobs:
git commit -m "update playground"
git push origin $BRANCH_NAME
# Store the PAT in a file that can be accessed by the
# GitHub CLI.
echo "${{ secrets.ACCESS_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
gh pr create \
--body "Port From ${{ github.head_ref }}. Commit: ${{ github.sha }}" \
--title "Update Playground" \
--head "$BRANCH_NAME" \
--base "main"
--base "main"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit d5fb11f

Please sign in to comment.