Skip to content

Commit

Permalink
ci: 👷 added mirror action
Browse files Browse the repository at this point in the history
  • Loading branch information
paologaleotti committed Apr 8, 2024
1 parent 2c7191f commit f0f2176
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/mirror.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Mirror Repository to Another Repository

on: [push]

jobs:
mirror:
runs-on: ubuntu-latest

steps:
- name: Checkout Source Repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Mirror to Target Repository
env:
TARGET_REPO_PAT: ${{ secrets.TARGET_REPO_PAT }}
TARGET_REPO_URL: https://github.com/quinck-io/blaze
run: |
git remote add target "${TARGET_REPO_URL}"
git push --mirror "https://${TARGET_REPO_PAT}@${TARGET_REPO_URL#https://}"

0 comments on commit f0f2176

Please sign in to comment.