aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/sync_to_forgejo.yml
blob: f8d763736465d10589f5d38f03353352d8d5f1a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
name: Force Push to Any Remote Repo

on:
  push:

jobs:
  sync:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout source code
        uses: actions/checkout@v3
        with:
          fetch-depth: 0

      - name: Force push to target repository
        env:
          TARGET_REPO_URL: ${{ secrets.TARGET_REPO_URL }}
        run: |
          git remote add target ${TARGET_REPO_URL}
          git push --force target