Sync Mirror #4
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: Sync Staging Repo | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
sync: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout smithy-swift | |
uses: actions/checkout@v4 | |
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 |