Skip to content

Commit

Permalink
Update pr-to-main.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Susan Shi <[email protected]>
  • Loading branch information
susanshi authored Jun 18, 2024
1 parent 6c197b8 commit 195f1a1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/pr-to-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,14 @@ jobs:
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332

# https://github.com/marketplace/actions/github-pull-request-action
- name: pull-request
run: |
gh_pr_up() { gh pr create $* || gh pr edit $* }
gh_pr_up --title ${{ github.event.commits[0].message }} --body "This is a automated PR to main" --base main
- name: create pull request with reposync action
id: open-pr
uses: repo-sync/pull-request@7e79a9f5dc3ad0ce53138f01df2fad14a04831c5 #v2.12.1
with:
github_token: ${{ secrets.PR_TOKEN }}
destination_branch: main
pr_title: ${{ github.event.commits[0].message }}
pr_body: "Automated Pull Request"

0 comments on commit 195f1a1

Please sign in to comment.