forked from inaniwaudon/alternative-tsukuba-kdb
-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
シラバスデータの更新 #5
Comments
雑に書いた、CSVのダウンロードの後JSONに変換して諸々Commitするやつです。 name: CSV scheduled update
on:
schedule:
- cron: "0 0 * * 0" # At 00:00 on Sun
jobs:
update:
runs-on: ubuntu-latest
matrix:
python-version: [3.8]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Configure git
run: |
git config user.name Make-IT-TSUKUBA
git config user.email "${{ secrets.MAIL }}" # 要設定
git remote set-url origin https://Make-IT-TSUKUBA:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
git checkout master
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install -U pip
pip install requests
- name: Download CSV
run: |
cd .github && python download.py && cd ..
- name: Make JSON
run: |
python make-json/csv-json.py ".github/csv/kdb-$(date +%Y%m%d).csv" make-json/list.txt False
- name: Commit
run: |
git add .
git commit -m "update: $(date +%Y%m%d)"
git push origin master |
Closed
ありがとうございます。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
inaniwaudon#14
KdBが再開次第対応したいですね。
The text was updated successfully, but these errors were encountered: