Skip to content

Commit fd65558

Browse files
committed
feat: add GitHub Actions workflow to mirror Drupal.org repository branch
1 parent 8da44de commit fd65558

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

.github/workflows/mirror.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Mirror Branch
2+
on:
3+
schedule:
4+
- cron: "0 0 * * *" # Runs every day at midnight
5+
workflow_dispatch: # Allows manual trigger
6+
7+
jobs:
8+
mirror:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Sync Branch
12+
run: |
13+
git clone --single-branch --branch 2.x https://git.drupalcode.org/project/bricks.git temp_dir
14+
cd temp_dir
15+
git remote add github https://${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
16+
git push github 2.x --force

0 commit comments

Comments
 (0)