add 058 #36
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Validate Feed | |
on: | |
pull_request: | |
branches: | |
- '**' | |
paths: | |
- 'public/feed.rss' | |
jobs: | |
validate-feed: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/github-script@v6 | |
with: | |
script: | | |
const podbaseURL = "https://podba.se/?url=https://raw.githubusercontent.com/akronymisierbar/akronymisier.bar/${{ github.sha }}/public/feed.rss" | |
github.rest.issues.createComment({ | |
issue_number: context.issue.number, | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
body: `Looks like you made a change to the RSS feed. Aside from the automatic checks, please also check [podbase's feed validator](${podbaseURL}), thanks!` | |
}) | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
cache: npm | |
- uses: denolib/setup-deno@master | |
with: | |
deno-version: v1.35.3 | |
- run: npm run lint:feed-w3c https://validator.w3.org/feed/check.cgi?url=https://raw.githubusercontent.com/akronymisierbar/akronymisier.bar/${{ github.sha }}/public/feed.rss | |