mirror of
https://github.com/KevinMidboe/miljobilen-rss.git
synced 2025-10-29 17:50:23 +00:00
27 lines
648 B
YAML
27 lines
648 B
YAML
name: Setup RSS Environment
|
|
description: Common steps for RSS job
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Install Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '21'
|
|
|
|
- name: Run Script
|
|
run: node src/run.js 'solberg' 1;
|
|
mv rss.xml solberg.xml
|
|
|
|
- id: 'auth-to-gcloud'
|
|
uses: 'google-github-actions/auth@v2'
|
|
with:
|
|
credentials_json: '${{ secrets.GOOGLE_CREDENTIALS }}'
|
|
|
|
- id: 'upload-rss-file'
|
|
uses: 'google-github-actions/upload-cloud-storage@v2'
|
|
with:
|
|
path: 'solberg.xml'
|
|
destination: 'miljobilen-rss'
|
|
process_gcloudignore: false
|
|
|