Skip to content

Commit

Permalink
Disable draft deploy running from forks
Browse files Browse the repository at this point in the history
(it will never work anyway)
  • Loading branch information
josh-heyer committed May 13, 2024
1 parent e768465 commit 211919d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/deploy-draft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ concurrency:
jobs:
build-deploy:
if: |
(github.event.action == 'labeled' && github.event.label.name == 'deploy') ||
(github.event.action != 'labeled' && contains(github.event.pull_request.labels.*.name, 'deploy'))
(
(github.event.action == 'labeled' && github.event.label.name == 'deploy') ||
(github.event.action != 'labeled' && contains(github.event.pull_request.labels.*.name, 'deploy'))
) && !github.event.pull_request.head.repo.fork
runs-on: docs-16c-64gb-600gb
steps:
- name: inject slug/short variables
Expand Down

1 comment on commit 211919d

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

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

Please sign in to comment.