Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add workflow to create pr from test to main branch after "Pre-release E2E tests" workflow #177

Merged
merged 2 commits into from
Nov 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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-to-main:
runs-on: ubuntu-latest
steps:
- name: Checkout test branch
uses: actions/checkout@v3
with:
ref: 'test'

- 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 }}
Loading