Skip to content

Commit d615d54

Browse files
committed
Add rhdp-branch sync workflow.
1 parent cbb65b2 commit d615d54

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# This is a job to be run in the validatedpatterns organization only.
2+
# It tries to keep the rhdp-deploy branch uptodate by creating a PR from main
3+
---
4+
name: Sync main to rhdp-deploy
5+
on:
6+
push:
7+
branches:
8+
- main
9+
10+
jobs:
11+
sync-branches:
12+
if: |
13+
github.repository_owner == 'validatedpatterns'
14+
runs-on: ubuntu-latest
15+
name: Git Sync branch
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
- name: Set up Node
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: 20
23+
- name: Opening pull request
24+
id: pull
25+
uses: mbaldessari/[email protected]
26+
with:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
FROM_BRANCH: "main"
29+
TO_BRANCH: "rhdp-deploy"

0 commit comments

Comments
 (0)