update-ics #133906
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
name: update-ics | |
on: | |
schedule: | |
- cron: '12/15 * * * *' | |
workflow_dispatch: | |
push: | |
branches-ignore: | |
- 'gh-pages' | |
- 'public' | |
tags-ignore: | |
- "**" | |
jobs: | |
update: | |
name: Update ics | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
permissions: | |
contents: write | |
packages: read | |
steps: | |
- name: checkout | |
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 | |
- name: cache | |
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 | |
with: | |
path: ".venv" | |
key: ${{ runner.os }}-${{ hashFiles('poetry.lock') }} | |
- name: run | |
uses: devcontainers/ci@57eaf0c9b518a76872bc429cdceefd65a912309b | |
with: | |
imageName: ghcr.io/${{ github.repository }}/devcontainer | |
push: never | |
runCmd: | | |
set -e | |
poetry install | |
poetry run python run.py | |
env: | | |
HOLODULE_PAGE | |
HOLODULE_YOUTUBE_KEY | |
env: | |
HOLODULE_PAGE: ${{ vars.HOLODULE_PAGE }} | |
HOLODULE_YOUTUBE_KEY: ${{ secrets.HOLODULE_YOUTUBE_KEY }} | |
- name: deploy to public branch | |
if: github.ref_name == 'master' | |
uses: peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847 | |
with: | |
github_token: ${{ github.token }} | |
publish_dir: ./public | |
publish_branch: public | |
keep_files: true | |
commit_message: update ics | |
cname: sarisia.cc | |
user_name: mntaqua | |
user_email: '[email protected]' | |
- name: notify to Discord if failure | |
if: failure() | |
uses: sarisia/actions-status-discord@9904e3130b8905d5b973df25623f17672dcb3466 | |
with: | |
webhook: ${{ secrets.DISCORD_WEBHOOK }} | |
title: holodule - update ics |