[go: nahoru, domu]

Skip to content

Commit

Permalink
Regenerate feed.xml whenever a commit is made on main
Browse files Browse the repository at this point in the history
  • Loading branch information
francisrstokes committed May 5, 2023
1 parent e26afaf commit 98ae7d9
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/rss-feed.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
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
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
node_modules
in-progress

0 comments on commit 98ae7d9

Please sign in to comment.