Skip to content

Commit

Permalink
feature: add github action for automated pull request for the pilot b…
Browse files Browse the repository at this point in the history
…ranch, after pull requests on main
  • Loading branch information
Pierre Delpy committed Aug 27, 2024
1 parent b9f0bf7 commit 16d478e
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/auto-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Automatically generate Pull Requests for feature/pilot-projects

on:
pull_request:
types: [closed]
branches:
- main

jobs:
create_pr:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Create Pull Request to feature/pilot-projects branch
run: gh pr create -B feature/pilot-projects -H main --title 'Create Pull Request to feature/pilot-projects branch' --body 'Created by Github action'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 16d478e

Please sign in to comment.