Skip to content

Commit

Permalink
Update pull-request.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Nedim Arabacı <[email protected]>
  • Loading branch information
needim authored Dec 21, 2023
1 parent 5969ab8 commit fceead2
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
name: Auto PR - Submission
on:
push:
branches:
- tool/*

permissions:
pull-requests: write

jobs:
pull-request:
name: Open PR to main
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: pull-request
run: |
gh_pr_up() { gh pr create $* || gh pr edit $* }
gh_pr_up --title "New tool!" --body "Description"
- name: Checkout
uses: actions/checkout@v3
- name: Open or update PR
env:
GH_TOKEN: ${{ github.token }}
run: |
gh_pr_up() { IFS=$'\n'; gh pr create $* || gh pr edit $*; }
gh_pr_up --title "Automatic PR" --body "New tool added."

0 comments on commit fceead2

Please sign in to comment.