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: Update RSS feed | |
on: | |
push: | |
branches: | |
- 'main' | |
jobs: | |
rss: | |
name: Update RSS feed | |
if: ${{ !contains(github.event.head_commit.message, '#update-rss-feed') }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v2 | |
- name: node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 16.x | |
- run: | | |
cd feed-builder | |
npm i | |
npm i -g ts-node | |
- run: sh ./generate-feed.sh | |
- run: | | |
git config user.name "GitHub Actions Bot" | |
git config user.email "<>" | |
- run: | | |
git add feed.xml | |
git commit -m "#update-rss-feed" | |
git push origin main |