Skip to content

feat(blog): Add article about advanced porting posix libs #124

feat(blog): Add article about advanced porting posix libs

feat(blog): Add article about advanced porting posix libs #124

name: Mirror main to GitLab
on:
push:
branches:
- main
# Allow manual runs from the Actions tab
workflow_dispatch:
jobs:
mirror:
if: github.repository_owner == 'espressif'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Add GitLab remote and push
env:
GITLAB_URL: ${{ secrets.GITLAB_SERVER_URL }}
GITLAB_TOKEN: ${{ secrets.GITLAB_BOT_REPO_TOKEN }}
GITLAB_USERNAME: "oauth2"
run: |
GITLAB_REPO="$GITLAB_URL/espressif/developer-portal.git"
git remote add gitlab "https://$GITLAB_USERNAME:$GITLAB_TOKEN@$GITLAB_REPO"
git push gitlab main