Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hughcrt committed May 13, 2024
1 parent bd5de2a commit 696ff22
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 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 }}."
2 changes: 1 addition & 1 deletion .github/workflows/build-push-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
platforms: linux/amd64

deploy:
needs: build-and-push-amd64
needs: build-and-push-production-images
runs-on: ubuntu-latest
steps:
- name: Deploy to Production
Expand Down

0 comments on commit 696ff22

Please sign in to comment.