Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 9 additions & 12 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,21 @@
name: Update CHANGELOG.md
on:
issue_comment:
types: [created]
pull_request_target:
types: [opened]
branches:
- dev
types: [created] # Add "@nf-core-bot changelog" as a PR comment to trigger this workflow.

jobs:
update_changelog:
runs-on: ubuntu-latest
# Run if comment is on a PR with the main repo, and if it contains the magic keywords.
# Or run on PR creation, unless asked otherwise in the title.
if: |
github.repository_owner == 'nf-core' && (
github.event_name == 'pull_request_target' ||
github.event.issue.pull_request && startsWith(github.event.comment.body, '@nf-core-bot changelog')
)

steps:
- name: branch-deploy
id: branch-deploy
uses: github/branch-deploy@c9fcc362bdcea69eecac6578dde245cd5e3a55bf # v10.4.3
with:
trigger: "@nf-core-bot changelog"
reaction: "eyes"
stable_branch: "dev"

- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
with:
token: ${{ secrets.NF_CORE_BOT_AUTH_TOKEN }}
Expand Down
17 changes: 10 additions & 7 deletions .github/workflows/update-textual-snapshots.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
name: Update Textual snapshots from a comment
on:
issue_comment:
types: [created]
types: [created] # Add "@nf-core-bot update textual snapshots" as a PR comment to trigger this workflow.

jobs:
update-snapshots:
# Only run if comment is on a PR with the main repo, and if it contains the magic keywords
if: >
contains(github.event.comment.html_url, '/pull/') &&
contains(github.event.comment.body, '@nf-core-bot') &&
contains(github.event.comment.body, 'update textual snapshots') &&
github.repository == 'nf-core/tools'
runs-on: ubuntu-latest

steps:
- name: branch-deploy
id: branch-deploy
uses: github/branch-deploy@c9fcc362bdcea69eecac6578dde245cd5e3a55bf # v10.4.3
with:
trigger: "@nf-core-bot update textual snapshots"
reaction: "eyes"
stable_branch: "dev"

# Use the @nf-core-bot token to check out so we can push later
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
with:
Expand Down