We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21ab755 commit 6bba6c8Copy full SHA for 6bba6c8
1 file changed
.github/workflows/project-board-automation.yml
@@ -29,8 +29,11 @@ jobs:
29
name: Add to project board
30
runs-on: ubuntu-latest
31
permissions: {}
32
- # Skip entirely if the repository variable has not been configured yet
33
- if: vars.PROJECT_URL != ''
+ # Skip entirely if the repository variable or token have not been configured,
+ # or if this is a pull request from a fork (no secrets available).
34
+ if: vars.PROJECT_URL != '' &&
35
+ secrets.PROJECT_TOKEN != '' &&
36
+ (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository)
37
steps:
38
- name: Add issue or PR to project board
39
uses: actions/add-to-project@v1.0.2
0 commit comments