Skip to content

Commit

Permalink
Merge pull request #177 from fingerprintjs/feat/create-pr-workflow
Browse files Browse the repository at this point in the history
Add workflow to create pr from test to main branch after "Pre-release E2E tests" workflow
  • Loading branch information
ilfa authored Nov 23, 2023
2 parents d95e2bc + 029261f commit 1abfe1a
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-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 }}

0 comments on commit 1abfe1a

Please sign in to comment.