mirror of
https://github.com/KevinMidboe/miljobilen-rss.git
synced 2025-10-29 17:50:23 +00:00
Github action script for executing RSS generation
This commit is contained in:
28
.github/workflows/update-rss.yml
vendored
Normal file
28
.github/workflows/update-rss.yml
vendored
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
name: Run script generating new RSS file
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- ci/test
|
||||||
|
schedule:
|
||||||
|
- cron: "0 0 * * *" # Run every day at midnight
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout Repository
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Install Node.js
|
||||||
|
uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
|
node-version: '21'
|
||||||
|
|
||||||
|
- name: Run Script
|
||||||
|
run: node run.js
|
||||||
|
|
||||||
|
- name: List Directory
|
||||||
|
run: ls -l
|
||||||
Reference in New Issue
Block a user