Skip to content

feat: accept VERISIMDB_PAT for cross-repo dispatch #19

feat: accept VERISIMDB_PAT for cross-repo dispatch

feat: accept VERISIMDB_PAT for cross-repo dispatch #19

Workflow file for this run

# 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