Generate holiday ICS files #4
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: Generate holiday ICS files | |
on: | |
schedule: | |
# Run every year on 1st December, midnight | |
- cron: '0 0 1 12 *' | |
workflow_dispatch: | |
jobs: | |
generate: | |
name: Generate ICS | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install NodeJS | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Run script | |
env: | |
LOG_ENABLED: true | |
working-directory: ./.github/workflows/holiday-generator | |
run: 'npm install && npm start' | |
- name: Create PR | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
token: ${{ secrets.FOSSIFYBOT_TOKEN }} | |
commit-message: 'Autogenerated holidays update' | |
title: 'Holidays update' | |
body: ' ' |