Skip to content

Commit

Permalink
revert it back the CI because still not working
Browse files Browse the repository at this point in the history
  • Loading branch information
alifnaufalyasin committed Jan 26, 2024
1 parent 853c47d commit d73e051
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/generate-data-member.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,28 @@ jobs:
- 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, commit it and push to branch production
- name: run python script to convert csv to json
run: |
python ./scripts/script.py
cd ./scripts
python script.py
mkdir -p /tmp/data
cp ./scripts/dataMember.json /tmp/data/dataMember.json
git config --global user.email "alifnaufalyasin@gmail.com"
git config --global user.name "Alif Naufal"
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 "actions@example.com"
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

0 comments on commit d73e051

Please sign in to comment.