Skip to content

Commit

Permalink
🔄 synced local '.github/workflows/' with remote 'template_workflows/p…
Browse files Browse the repository at this point in the history
…roject_automation/'
  • Loading branch information
surchs committed Mar 21, 2024
1 parent cc87614 commit 1a92fc0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/handle_external_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
pull_request:
types: [opened]

permissions:
pull-requests: write

jobs:
handle_external_pr:
# Only run this entire workflow if the PR was opened from a forked repo
Expand All @@ -12,13 +15,10 @@ jobs:
# write access to the repo.
if: github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.NB_PROJECT_PAT }}

steps:
- name: Add PR to project
run: |
gh pr edit ${{ github.event.pull_request.url }} --add-project Neurobagel
- name: Label pull request with "_community"
run: gh pr edit ${{ github.event.pull_request.number }} --add-label "_community"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}

0 comments on commit 1a92fc0

Please sign in to comment.