Skip to content

Commit

Permalink
Try GITHUB_TOKEN
Browse files Browse the repository at this point in the history
  • Loading branch information
leehart committed Sep 29, 2023
1 parent 253d637 commit db40ef6
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/add_tagged_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,12 @@ jobs:
git add .
git commit -m "Add documentation for $VERSION_TAG"
- name: Push new branch upstream and create pull request
run: |
git push --set-upstream origin "$BRANCH_NAME"
gh pr create -B main -H "$BRANCH_NAME" --title "Merge $BRANCH_NAME into main" --body 'Automated pull request from GitHub Actions workflow'
- name: Push new branch upstream
run: git push --set-upstream origin "$BRANCH_NAME"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create pull request
run: gh pr create -B main -H "$BRANCH_NAME" --title "Merge $BRANCH_NAME into main" --body 'Automated pull request from GitHub Actions workflow'
env:
GH_PR: ${{ secrets.GH_PR }}

0 comments on commit db40ef6

Please sign in to comment.