Skip to content

Commit

Permalink
ci: fix (#313)
Browse files Browse the repository at this point in the history
  • Loading branch information
hughcrt authored May 16, 2024
1 parent bc08a70 commit 4d50a5d
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/auto-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,19 @@ on:
create:

permissions:
contents: write
pull-requests: write

jobs:
pull-request:
if: github.ref_type != 'tag'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Create Pull Request
run: |
prefix=$(echo ${{ github.ref }}| cut -d '/' -f 3)
branch_name=$(echo ${{ github.ref }} | cut -d '/' -f 4- | tr '-' ' ')
GH_TOKEN=${{ secrets.GH_TOKEN }} gh pr create --title "${prefix}: ${branch_name}" --body ""
uses: peter-evans/create-pull-request@v6
with:
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
title: "PR for new branch: ${{ github.ref_name }}"
body: "Automatically created pull request for the branch ${{ github.ref_name }}."

0 comments on commit 4d50a5d

Please sign in to comment.