Merge pull request #712 from l3montree-dev/fix-billing-url #123
Workflow file for this run
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 to GitLab | |
| on: | |
| push: | |
| branches: ["**"] | |
| tags: ["**"] | |
| jobs: | |
| mirror: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 - https://github.com/actions/checkout/releases/tag/v5.0.0 | |
| with: | |
| fetch-depth: 0 | |
| fetch-tags: true | |
| persist-credentials: false | |
| - name: Mirror to GitLab | |
| continue-on-error: true | |
| run: | | |
| git remote add gitlab "https://oauth2:${GITLAB_TOKEN}@${GITLAB_HOST}/${GITLAB_REPO}.git" | |
| git push --prune gitlab 'refs/heads/*:refs/heads/*' | |
| git push --prune gitlab 'refs/tags/*:refs/tags/*' | |
| env: | |
| GITLAB_TOKEN: ${{ secrets.GITLAB_MIRROR_TOKEN }} | |
| GITLAB_HOST: ${{ vars.GITLAB_HOST }} | |
| GITLAB_REPO: ${{ vars.GITLAB_REPO }} |