-
-
Notifications
You must be signed in to change notification settings - Fork 158
31 lines (26 loc) · 758 Bytes
/
replicate.yml
File metadata and controls
31 lines (26 loc) · 758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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 git@github.com:exercism/website-deployer.git
git push upstream +main