Replicate #4150
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: Replicate | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: 50 4 * * * | |
jobs: | |
replicate: | |
# TODO: Change this to website when merging | |
if: github.repository == 'exercism/website' | |
name: Replicate to exercism/website-deployer | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab | |
with: | |
fetch-depth: 0 | |
- name: Push to Website Deployer | |
run: | | |
mkdir ~/.ssh | |
echo "${{ secrets.WEBSITE_DEPLOYER_CLONE_KEY }}" > ~/.ssh/id_ed25519 | |
chmod 600 ~/.ssh/id_ed25519 | |
git remote add upstream [email protected]:exercism/website-deployer.git | |
git push upstream +main |