mirror of
https://github.com/fabrice404/olympics-calendar.git
synced 2025-12-13 06:39:47 +00:00
28 lines
604 B
YAML
28 lines
604 B
YAML
name: Auto update calendar
|
|
|
|
on:
|
|
schedule:
|
|
- cron: "*/10 * * * *"
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
run:
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20
|
|
- run: npm install
|
|
- run: npm start
|
|
- name: Set date
|
|
id: date_step
|
|
run: echo "today=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_ENV
|
|
- uses: stefanzweifel/git-auto-commit-action@v5
|
|
with:
|
|
commit_message: "calendar updates on ${{ env.today }}"
|