This repository has been archived by the owner on Jan 29, 2024. It is now read-only.
Cronjob for nasin-sitelen #299
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A cronjob for updating nasin-sitelen | |
name: Cronjob for nasin-sitelen | |
on: | |
schedule: | |
- cron: '30 0 * * *' | |
permissions: | |
contents: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.10" | |
- name: Configuration | |
env: | |
GITHUB_TOKEN: ${{ secrets.TOKEN }} | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "AcipenserSturio" | |
- name: Update nasin-sitelen | |
run: | | |
cd updating | |
python update.py | |
cd .. | |
git add -A | |
git commit -m "Bump for $(date --iso-8601)" | |
git push "https://$(GITHUB_TOKEN)@github.com/lipu-linku/nasin-sitelen.git" |