Update sync_project.yml

dependabot/github_actions/actions/checkout-3.1.0
fscarmen 3 years ago committed by GitHub
parent e02a0d9a60
commit bb58c79e16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 24
      .github/workflows/sync_project.yml

@ -6,44 +6,44 @@ on:
# branches: # branches:
# - master # - master
schedule: schedule:
- cron: '0 16 * * *' - cron: '20 20 * * *'
jobs: jobs:
mirror_to_bitbucket: mirror_to_gitlab:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: 'Checkout' - name: 'Checkout'
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: 'Mirror to bitbucket' - name: 'Mirror to gitlab'
uses: pixta-dev/repository-mirroring-action@v1 uses: pixta-dev/repository-mirroring-action@v1
with: with:
target_repo_url: target_repo_url:
git@bitbucket.org:fscarmen/test.git git@gitlab.com:fscarmen/test.git
ssh_private_key: ssh_private_key:
${{ secrets.PRIVATE_KEY }} ${{ secrets.PRIVATE_KEY }}
mirror_to_gitea: mirror_to_bitbucket:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: 'Checkout' - name: 'Checkout'
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: 'Mirror to gitea' - name: 'Mirror to bitbucket'
uses: pixta-dev/repository-mirroring-action@v1 uses: pixta-dev/repository-mirroring-action@v1
with: with:
target_repo_url: target_repo_url:
git@try.gitea.io:fscarmen/test.git git@bitbucket.org:fscarmen/test.git
ssh_private_key: ssh_private_key:
${{ secrets.PRIVATE_KEY }} ${{ secrets.PRIVATE_KEY }}
#
# mirror_to_gitlab: # mirror_to_gitee:
# runs-on: ubuntu-latest # runs-on: ubuntu-latest
# steps: # steps:
# - name: 'Checkout' # - name: 'Checkout'
# uses: actions/checkout@v1 # uses: actions/checkout@v3
# - name: 'Mirror to gitlab' # - name: 'Mirror to gitee'
# uses: pixta-dev/repository-mirroring-action@v1 # uses: pixta-dev/repository-mirroring-action@v1
# with: # with:
# target_repo_url: # target_repo_url:
# git@gitlab.com:fscarmen/test.git # git@gitee.com:fscarmen/test.git
# ssh_private_key: # ssh_private_key:
# ${{ secrets.PRIVATE_KEY }} # ${{ secrets.PRIVATE_KEY }}

Loading…
Cancel
Save