-
Notifications
You must be signed in to change notification settings - Fork 282
37 lines (32 loc) · 984 Bytes
/
gtn-news.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
# Pull news from the Galaxy Training Network's RSS feed and add them as
# Galaxy Hub posts.
name: Galaxy Training Network news
on:
workflow_dispatch:
schedule:
- cron: 0 3 * * *
jobs:
collect:
name: Collect news from the Galaxy Training Network
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Install feedparser.
run: pip install feedparser~=6.0 pyyaml
- name: Parse GTN RSS feed.
id: gtn
run: python utils/gtn-import.py >> $GITHUB_OUTPUT
- name: Create Pull Request
# If it's not a Pull Request then commit any changes as a new PR.
if: |
github.event_name != 'pull_request' &&
steps.gtn.outputs != ''
uses: peter-evans/create-pull-request@v3
with:
title: Import GTN Posts
branch-suffix: timestamp
commit-message: Import GTN Posts
add-paths: content/news/