Open Design Guide Reading Club #7 #2022
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
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 |