Skip to content

Commit

Permalink
Add workflows to automatically sync CS website
Browse files Browse the repository at this point in the history
  • Loading branch information
marcopernpruner committed Sep 6, 2023
1 parent fb830b8 commit 19b3921
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/update-members-cs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: update-members-cs

on:
push:
paths:
- '_data/members.yml'

jobs:
copy-file:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Push to CS repository
uses: dmnemec/copy_file_to_another_repo_action@main
env:
API_TOKEN_GITHUB: ${{ secrets.CS_SYNC_TOKEN }}
with:
source_file: '_data/members.yml'
destination_repo: 'csfbk/csfbk.github.io'
destination_folder: '_data/members'
rename: 'members_st.yml'
user_name: 'csfbk'
user_email: '[email protected]'

- run: echo "Operation completed."
27 changes: 27 additions & 0 deletions .github/workflows/update-people-cs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: update-people-cs

on:
push:
paths:
- '_data/people.yml'

jobs:
copy-file:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Push to CS repository
uses: dmnemec/copy_file_to_another_repo_action@main
env:
API_TOKEN_GITHUB: ${{ secrets.CS_SYNC_TOKEN }}
with:
source_file: '_data/people.yml'
destination_repo: 'csfbk/csfbk.github.io'
destination_folder: '_data/people'
rename: '1_people_st.yml'
user_name: 'csfbk'
user_email: '[email protected]'

- run: echo "Operation completed."
26 changes: 26 additions & 0 deletions .github/workflows/update-people-pictures-cs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: update-people-pictures-cs

on:
push:
paths:
- 'assets/areas/people/**'

jobs:
copy-file:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Push to CS repository
uses: dmnemec/copy_file_to_another_repo_action@main
env:
API_TOKEN_GITHUB: ${{ secrets.CS_SYNC_TOKEN }}
with:
source_file: 'assets/areas/people/'
destination_repo: 'csfbk/csfbk.github.io'
destination_folder: 'assets/areas/people/st'
user_name: 'csfbk'
user_email: '[email protected]'

- run: echo "Operation completed."

0 comments on commit 19b3921

Please sign in to comment.