We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8cbd986 commit 4d126edCopy full SHA for 4d126ed
1 file changed
.github/workflows/mirror-branch.yml
@@ -8,9 +8,13 @@ jobs:
8
mirror:
9
runs-on: ubuntu-latest
10
steps:
11
- - name: Sync Branch
+ - name: Checkout destination
12
+ uses: actions/checkout@v4
13
+ with:
14
+ fetch-depth: 0
15
+
16
+ - name: Sync branch
17
run: |
- git clone --single-branch --branch 2.x https://git.drupalcode.org/project/bricks.git temp_dir
- cd temp_dir
- git remote add github https://${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
- git push github 2.x --force
18
+ git remote add external https://git.drupalcode.org/project/bricks.git
19
+ git fetch external 2.x
20
+ git push origin external/2.x:refs/heads/2.x --force
0 commit comments