This repository has been archived by the owner on Aug 12, 2024. It is now read-only.
Update Notebooks #65
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
name: Update Notebooks | |
on: | |
schedule: | |
- cron: "0 0 * * *" # Runs at 00:00 UTC every day | |
workflow_dispatch: | |
jobs: | |
update-notebooks: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout splink_colab_links repo | |
uses: actions/checkout@v2 | |
with: | |
ref: "main" | |
- name: Clone splink repository | |
run: git clone http://github.com/moj-analytical-services/splink | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.9" | |
- name: Run add_pip_install.py script | |
run: python add_pip_install.py | |
- name: Commit and Push Changes | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "Your Name" | |
git add docs/ links.md | |
git commit -m "Update notebooks and links" | |
git push https://${{ secrets.COMMIT_TOKEN }}@github.com/${{ github.repository }} HEAD:main |