-
-
Notifications
You must be signed in to change notification settings - Fork 10
49 lines (38 loc) · 1.12 KB
/
10-calendars.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Generate Calendars
on:
schedule:
- cron: '0 0 * * *'
push:
branches:
- main
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Generate Calendars
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
coverage: none
tools: composer:v2
- name: Install PHP dependencies
run: composer install
- name: Run iCal's build
run: bin/gocal gen
continue-on-error: false
- name: Don't Commit composer.json change
run: git checkout -- composer.json
- name: Commit any changes back to the repo
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "[GitHub Actions Bot: Publish iCal's Update]"
commit_author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>