Skip to content

Commit 4416fd6

Browse files
committed
Add workflow for periodically fetching the currently decided feed
Currently this is just the codemeta tag from softwareheritage.org which can change later
1 parent 5606a69 commit 4416fd6

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/news.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Update news
2+
3+
on:
4+
schedule:
5+
# Get the feed every day at 1:13 UTC
6+
- cron: "13 1 * * *"
7+
# allow manual update
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: Download File
17+
run: |
18+
curl https://www.softwareheritage.org/tag/codemeta/feed/ --output ./data/news.xml
19+
working-directory: ${{ github.workspace }}
20+
- name: Commit and Push Changes
21+
run: |
22+
git config --global user.name "${{ github.actor }}"
23+
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
24+
25+
git add ./data/news.xml
26+
git commit -m 'Update news feed'
27+
git push

0 commit comments

Comments
 (0)