delete old test post #22
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: RSS Feed | |
on: | |
push: | |
branches: [ "main" ] | |
paths: | |
- 'rss/**' | |
- 'content/**' | |
- '.github/workflows/rss.yml' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '14' | |
- name: Install dependencies | |
run: npm install ./rss | |
- name: Generate RSS | |
run: node rss/generate-rss.js | |
- name: Commit and push | |
run: | | |
git config --local user.email "action@github.com" | |
git config --local user.name "GitHub Action" | |
git add rss.xml | |
git commit -m "Generate RSS feed" -a || echo "No changes to commit" | |
git push |