Skip to content

Commit

Permalink
chore: add workflow to create pr from test to main branch after "Pre-…
Browse files Browse the repository at this point in the history
…release E2E tests" workflow
  • Loading branch information
ilfa committed Nov 23, 2023
1 parent d95e2bc commit dbec73d
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/create-pr-to-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Create PR to Main

on:
workflow_run:
workflows: ["Pre-release E2E tests"]
branches: ["test"]
types:
- completed

permissions:
pull-requests: write
contents: read

jobs:
create-pr:
runs-on: ubuntu-latest
steps:
- name: Checkout main branch
uses: actions/checkout@v3
with:
ref: 'main'

- name: Create Pull Request
run: |
gh pr create --base production --head main --title "Merge test into main" --body "Automated PR to merge test branch into main"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit dbec73d

Please sign in to comment.