-
Notifications
You must be signed in to change notification settings - Fork 20
39 lines (38 loc) · 1.16 KB
/
main.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
on:
push:
branches:
- calendar
issues:
types:
- opened
- edited
- labeled
branches:
- calendar
jobs:
create_calendar_from_issues:
runs-on: ubuntu-latest
name: Create calendar from issues
steps:
- uses: actions/checkout@v3
- name: Create calendar
id: hello
uses: GBKS/[email protected]
with:
domain: 'bitcoindesigners.org'
company: 'Bitcoin Design Community'
name: 'Bitcoin Design Community Calls & Events'
repository: "BitcoinDesign,Meta,call"
file: 'events.ical'
- name: Commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "iCal updater"
git add events.ical
git diff --quiet && git diff --staged --quiet || git commit -m "chore(calendar): update events.ical from opened/edited call issue"
- name: Push changes # push the output folder to your repo
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
force: true
branch: calendar