mirror of
https://github.com/fabrice404/olympics-calendar.git
synced 2025-12-15 15:49:45 +00:00
Create publish.yml
This commit is contained in:
24
.github/workflows/publish.yml
vendored
Normal file
24
.github/workflows/publish.yml
vendored
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
name: Auto update calendar
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- 'main'
|
||||||
|
schedule:
|
||||||
|
- cron: "0, */1 * * *"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
run:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: 20
|
||||||
|
- run: npm install
|
||||||
|
- run: npm start
|
||||||
|
- uses: stefanzweifel/git-auto-commit-action@v5
|
||||||
Reference in New Issue
Block a user