Skip to content
Merged
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
5 changes: 5 additions & 0 deletions .github/workflows/welcome.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Greet first-time contributors.
#
# It runs in issues and pull requests from forks.

name: Greet First-Time Contributors

Expand All @@ -13,10 +15,13 @@ on:
permissions:
issues: write
pull-requests: write
id-token: write
contents: read

jobs:
greeting:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add an if-condition to only run this on forks? First time contributors usually won't run on 'GenericMappingTools/pygmt' unless they're a bot or something.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In aae7d87, I've added the if-condition

if: github.event_name == 'issues' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository)

name: Greet First-Time Contributors
if: github.event_name == 'issues' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository)
runs-on: ubuntu-latest

steps:
Expand Down