From 16d478e85b97235614ae25e5e3540dd74793be04 Mon Sep 17 00:00:00 2001
From: Pierre Delpy
Date: Tue, 27 Aug 2024 14:41:06 +0200
Subject: [PATCH] feature: add github action for automated pull request for the
pilot branch, after pull requests on main
---
.github/workflows/auto-pr.yml | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
create mode 100644 .github/workflows/auto-pr.yml
diff --git a/.github/workflows/auto-pr.yml b/.github/workflows/auto-pr.yml
new file mode 100644
index 00000000..94f8d08e
--- /dev/null
+++ b/.github/workflows/auto-pr.yml
@@ -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 }}
\ No newline at end of file