-
Notifications
You must be signed in to change notification settings - Fork 7
44 lines (42 loc) · 1.79 KB
/
sync-uri.yml
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
32
33
34
35
36
37
38
39
40
41
42
43
44
on: push
jobs:
git-sync:
runs-on: ubuntu-latest
steps:
- name: git-sync
uses: wei/git-sync@v3
with:
source_repo: "UMass-RC/unity-docs"
source_branch: "main"
destination_repo: "[email protected]:UMass-RC/unity-uri-docs.git"
destination_branch: "main"
destination_ssh_private_key: ${{ secrets.URI_MIRROR_KEY }}
set-uri-branding:
needs: [git-sync]
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
with:
repository: UMass-RC/unity-uri-docs
ssh-key: ${{ secrets.URI_MIRROR_KEY }}
- name: update cname file
run: |
echo "docs.unity.uri.edu" > ${GITHUB_WORKSPACE}/docs/CNAME
- name: set URI colors
run: |
sed -i '/--md-typeset-a-color/c\ --md-typeset-a-color: #002147;' ${GITHUB_WORKSPACE}/docs/extra.css
sed -i '/--md-primary-fg-color/c\ --md-primary-fg-color: #002147;' ${GITHUB_WORKSPACE}/docs/extra.css
sed -i '/--md-primary-fg-color--light/c\ --md-primary-fg-color--light: #002147;' ${GITHUB_WORKSPACE}/docs/extra.css
sed -i '/--md-primary-fg-color--dark/c\ --md-primary-fg-color--dark: #002147;' ${GITHUB_WORKSPACE}/docs/extra.css
sed -i '/--md-accent-fg-color/c\ --md-accent-fg-color: #002b56;' ${GITHUB_WORKSPACE}/docs/extra.css
- name: update readme
run: |
printf "# Unity URI User Docs Mirror\nThis is a mirror of https://github.com/UMass-RC/unity-docs. **DO NOT WRITE TO THIS REPO**" > ${GITHUB_WORKSPACE}/README.md
- name: commit changes
run: |
git config user.name "hakasapl"
git config user.email "[email protected]"
git add -A
git commit -m "AUTOMATION-updated uri branding"
git push