Galaxy Training Network news #8061
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
--- | |
# 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/ |