Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Xenosians committed Aug 2, 2023
2 parents bac7162 + 282c160 commit eb1e9ae
Show file tree
Hide file tree
Showing 5 changed files with 789 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,6 @@ jobs:
BRANCH: production # The branch the action should deploy to.
FOLDER: out # The folder the action should deploy.
CLEAN: true # Automatically remove deleted files from the deploy branch
clean-exclude: |
data/*.json
39 changes: 39 additions & 0 deletions .github/workflows/generate-data-member.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Generate Data Member in Json
on:
push:
branches: [master]
workflow_dispatch:

jobs:
generate_data_member:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Download csv file of member form in gsheet
run: |
curl -L -o ./scripts/dataMember.csv https://docs.google.com/spreadsheets/d/1SaXnuRt-1KXyDGS18KqU7cus4_IWNxpGhiVy0J1vz-U/export?format=csv
- name: run python script to convert csv to json
run: |
cd ./scripts
python script.py
mkdir -p /tmp/data
cp ./dataMember.json /tmp/data/dataMember.json
git checkout -b production
git fetch
git pull --rebase origin production
cd ..
cp /tmp/data/dataMember.json ./data/dataMember.json
mkdir -p ./data
- name: Commit changes
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
git add .
git commit -m "Commit changes from GitHub Actions"
- name: Push changes
run: |
git push origin production
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,7 @@ yarn-error.log*

/images/dbg.png
/images/ebg.png
/images/fixbg.png
/images/fixbg.png

/scripts/*.csv
/scripts/*.json
Loading

0 comments on commit eb1e9ae

Please sign in to comment.