We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c5d7ba commit e831533Copy full SHA for e831533
.github/workflows/mirror-main-to-gitlab.yml
@@ -0,0 +1,26 @@
1
+name: Mirror main to GitLab
2
+on:
3
+ push:
4
+ branches:
5
+ - main
6
+ # Allow manual runs from the Actions tab
7
+ workflow_dispatch:
8
+
9
+jobs:
10
+ mirror:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - name: Checkout repository
14
+ uses: actions/checkout@v4
15
+ with:
16
+ fetch-depth: 0
17
18
+ - name: Add GitLab remote and push
19
+ env:
20
+ GITLAB_URL: ${{ secrets.GITLAB_SERVER_URL }}
21
+ GITLAB_TOKEN: ${{ secrets.GITLAB_BOT_REPO_TOKEN }}
22
+ GITLAB_USERNAME: "oauth2"
23
+ GITLAB_REPO: "https://$GITLAB_URL/espressif/developer-portal.git"
24
+ run: |
25
+ git remote add gitlab https://$GITLAB_USERNAME:$GITLAB_TOKEN@$GITLAB_REPO
26
+ git push gitlab main
0 commit comments