fix: update MSRV to 1.85.0 and fix workflow issues #6
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
| # SPDX-License-Identifier: PMPL-1.0-or-later | |
| name: Mirror to GitLab and Bitbucket | |
| on: | |
| push: | |
| branches: [ main ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| mirror: | |
| name: Mirror repositories | |
| runs-on: ubuntu-latest | |
| if: github.repository == 'hyperpolymath/panic-attacker' | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5 | |
| with: | |
| fetch-depth: 0 | |
| - name: Mirror to GitLab | |
| if: vars.GITLAB_MIRROR_ENABLED == 'true' | |
| env: | |
| GITLAB_TOKEN: ${{ secrets.GITLAB_MIRROR_TOKEN }} | |
| run: | | |
| echo "Mirroring to GitLab..." | |
| # git push --mirror https://oauth2:${GITLAB_TOKEN}@gitlab.com/hyperpolymath/panic-attacker.git | |
| - name: Mirror to Bitbucket | |
| if: vars.BITBUCKET_MIRROR_ENABLED == 'true' | |
| env: | |
| BITBUCKET_TOKEN: ${{ secrets.BITBUCKET_MIRROR_TOKEN }} | |
| run: | | |
| echo "Mirroring to Bitbucket..." | |
| # git push --mirror https://x-token-auth:${BITBUCKET_TOKEN}@bitbucket.org/hyperpolymath/panic-attacker.git |