Skip to content

fokkesukke

fokkesukke #713

Workflow file for this run

name: fokkesukke
on:
# push:
# branches:
# - master
schedule:
- cron: "55 4 * * 1-6"
workflow_dispatch:
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install required PowerShell modules
shell: pwsh
run: |
Set-PSRepository PSGallery -InstallationPolicy Trusted
Install-Module UncommonSense.Hap, UncommonSense.Nrc, UncommonSense.Rss -Scope CurrentUser
- name: Update feed
shell: pwsh
run: |
Get-FokkeSukke
| Select-Object -First 10
| ForEach-Object {
New-RssFeedItem `
-ID $_.Url `
-Title $_.Title `
-Description "<img src='$($_.Body)'/>" `
-PubDate $_.Date }
| New-RssFeed `
-Title 'Fokke & Sukke' `
-Link 'https://nrc.nl/rubriek/fokke-sukke/' `
-Description 'Fokke & Sukke'
| Set-Content -Path ./data/fokkesukke.xml
- name: Commit and push feed
shell: bash
run: |
git config user.name github-actions
git config user.email github-actions@github.com
git pull
git add .
git commit -m "generated" || echo "No changes to commit"
git push