Merge pull request #593 from espressif/update/esp_new_jpeg_introduction #122
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |