Skip to content

Merge pull request #593 from espressif/update/esp_new_jpeg_introduction #122

Merge pull request #593 from espressif/update/esp_new_jpeg_introduction

Merge pull request #593 from espressif/update/esp_new_jpeg_introduction #122

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