Skip to content

Add new article for lock file update (#23) #25

Add new article for lock file update (#23)

Add new article for lock file update (#23) #25

Workflow file for this run

name: Update Group Website
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- "*"
jobs:
Validating_Article:
name: Validate Article
runs-on: ubuntu-latest
steps:
- name: Clone Tardis group data
uses: actions/checkout@v4
with:
repository: tardis-sn/tardis-org-data
path: tardis-org-data
token: ${{ secrets.RESEARCH_AND_NEWS }}
- name: Clone Research and News Repository
uses: actions/checkout@v4
with:
repository: tardis-sn/research_news
path: research_news
token: ${{ secrets.RESEARCH_AND_NEWS }}
- name: Set up Python3
uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Update pip and install Jupyter and Pandas
run: |
pip install --upgrade pip jupyter pandas
- name: Run Validator Notebook
run: |
ls -l -a
jupyter nbconvert --to python validate.ipynb
python3 validate.py
working-directory: research_news
- name: Dispatch to Kerzendorf Lab Website
run: |
curl -X POST \
-H "Authorization: Bearer ${{ secrets.RESEARCH_AND_NEWS }}" \
-H "Accept: application/vnd.github+json" \
-H "Content-Type: application/json" \
-d '{ "event_type": "repo-push" }' \
https://api.github.com/repos/kerzendorf-lab/groupwebsite_generator/dispatches
- name: Dispatch to Tardis-org-data
run: |
curl -X POST \
-H "Authorization: Bearer ${{ secrets.RESEARCH_AND_NEWS }}" \
-H "Accept: application/vnd.github+json" \
-H "Content-Type: application/json" \
-d '{ "event_type": "repo-push" }' \
https://api.github.com/repos/tardis-sn/tardis-org-data/dispatches
- name: Dispatch to DTI website generator
run: |
curl -X POST \
-H "Authorization: Bearer ${{ secrets.RESEARCH_AND_NEWS }}" \
-H "Accept: application/vnd.github+json" \
-H "Content-Type: application/json" \
-d '{ "event_type": "repo-push" }' \
https://api.github.com/repos/deepthought-initiative/dtiwebsite_generator/dispatches