TABConf [FREE PLAY] #1 - Open Co-working Day #103
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 | |
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: 'atlbitlab.com' | |
company: 'ATL BitLab' | |
name: 'ATL BitLab Events' | |
repository: "ATLBitLab,calendar,event" | |
file: 'events.ical' | |
timezone: "America/New_York" | |
- 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 |