panic-attacker 1.0.1

Universal stress testing and logic-based bug signature detection
Documentation
# 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