Skip to content

Galaxy Training Network news #8050

Galaxy Training Network news

Galaxy Training Network news #8050

Workflow file for this run

---
# 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 * * * *
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/