Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Fix mirror repo sync #882

Merged
merged 4 commits into from
Dec 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 11 additions & 13 deletions .github/workflows/repo-sync.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
name: Sync Staging Repo
name: Sync Mirror

on:
push:
branches:
- main
branches: [ main ]
workflow_dispatch:

jobs:
sync:
git-sync:
runs-on: ubuntu-latest

steps:
- name: Checkout smithy-swift
uses: actions/checkout@v4
- name: git-sync
uses: wei/git-sync@v3
with:
ref: main
- name: Add staging repo as remote with token
run: |
git remote add staging-repo https://${{ secrets.REPO_SYNC_AUTOMATION_USER_TOKEN }}@github.com/awslabs/private-smithy-swift-staging.git
- name: Push changes to staging repo
run: |
git push staging-repo main
source_repo: ${{ secrets.GIT_SYNC_SOURCE_REPO }}
source_branch: "main"
destination_repo: ${{ secrets.GIT_SYNC_DESTINATION_REPO }}
destination_branch: "main"
destination_ssh_private_key: ${{ secrets.GIT_SYNC_DESTINATION_SSH_PRIVATE_KEY }}
Loading