Skip to content

Commit 4904cb5

Browse files
committed
Do not run rss-to-bluesky job on schedule on forks
Within the blueskyfeedbot action there is a job rss-to-bluesky which will try to create bluesky posts for gtn news posts. This _should_ not run on forks and as there are no secrets in forks it also _can_ not run in forks (and it fails). As this action is triggered daily via cron, it is pretty annoying having a fork with daily failing runs triggering daily emails to the dev. This commit allows scheduled runs only on the galaxyproject/training-material repository and not on forks. However, for forks it is still possible to trigger the action manually, e.g. for testing.
1 parent 1924d96 commit 4904cb5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/blueskyfeedbot.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ concurrency:
1010
group: feedbot
1111
jobs:
1212
rss-to-bluesky:
13+
if: (github.event_name == 'schedule' && github.repository == 'galaxyproject/training-material') || (github.event_name != 'schedule')
1314
runs-on: ubuntu-latest
1415
steps:
1516
- name: Generate cache key

0 commit comments

Comments
 (0)