Skip to content

Commit

Permalink
Research Publications
Browse files Browse the repository at this point in the history
  • Loading branch information
NuwanJ committed Apr 5, 2024
1 parent 3776087 commit 853d033
Show file tree
Hide file tree
Showing 6 changed files with 7,145 additions and 7 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/publications.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Scheduled Run - Publications
on:
schedule:
# # At 18:50 UTC on every Monday (12.20 mid night in Sri Lanka)
- cron: "50 18 * * 1"

# Enables a button on Actions tab
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@master
with:
ref: main

- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install Python Dependencies
run: |
python -m pip install --upgrade pip
pip install requests pytz
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: "Update list of Publications"
run: |
cd ./python_scripts/
python update.py
- name: Commit and push into the main branch
run: |
git config user.name github-actions
git config user.email [email protected]
git add --all
git commit -m "Publications site was updated by GitHub Actions" || echo "No changes to commit"
git push
Loading

0 comments on commit 853d033

Please sign in to comment.