chore(deps): bump date-holidays in /.github/workflows/holiday-generat… #33
This file contains hidden or 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: | |
| push: | |
| branches: [main] | |
| paths: | |
| - ".github/workflows/holiday-generator/package-lock.json" | |
| - ".github/workflows/holiday-generator/config.js" | |
| jobs: | |
| generate: | |
| name: Generate ICS | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd | |
| - name: Install NodeJS | |
| uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 | |
| with: | |
| node-version: 20 | |
| - name: Run script | |
| env: | |
| LOG_ENABLED: true | |
| working-directory: ./.github/workflows/holiday-generator | |
| run: "npm install && npm start" | |
| - id: app-token | |
| uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf | |
| with: | |
| app-id: ${{ secrets.APP_ID }} | |
| private-key: ${{ secrets.APP_PRIVATE_KEY }} | |
| - name: Create PR | |
| uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 | |
| with: | |
| token: ${{ steps.app-token.outputs.token }} | |
| sign-commits: true | |
| add-paths: | | |
| app/src/main/assets/holidays/** | |
| branch: fossifybot/holidays | |
| commit-message: "chore: update holidays" | |
| title: "chore: update holidays" | |
| body: " " |