We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8da44de commit fd65558Copy full SHA for fd65558
1 file changed
.github/workflows/mirror.yml
@@ -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