Check for updates to GOV.UK bank holiday JSON #415
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: Check for updates to GOV.UK bank holiday JSON | |
on: | |
schedule: | |
# Runs every day at 12:30pm | |
- cron: '30 12 * * *' | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Check for updates | |
run: | | |
set +e | |
pip install requests | |
python manage_bank_holidays.py --update | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
commit-message: Update bank holidays | |
title: Update bank holidays |