Mirror to HuaweiCloud codehub Repo #63
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Mirror to HuaweiCloud codehub Repo | |
on: | |
schedule: | |
# triggers the workflow every day at 3:30 UTC. | |
- cron: '30 3 * * *' | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
to_codehub: | |
if: ${{github.repository == 'huaweicloudstack/terraform-provider-huaweicloudstack'}} | |
runs-on: ubuntu-latest | |
steps: # <-- must use actions/checkout before mirroring! | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: pixta-dev/repository-mirroring-action@v1 | |
with: | |
target_repo_url: | |
[email protected]:3333300012/terraform-provider-huaweicloudstack.git | |
ssh_private_key: # <-- use 'secrets' to pass credential information. | |
${{ secrets.TF_MIRROR_PRIVATE_KEY }} |