Run only on OSS (#21669)

This commit is contained in:
Violet Hynes
2023-07-07 13:01:31 -04:00
committed by GitHub
parent 9c8a7422ad
commit 87d37fecb7

View File

@@ -17,8 +17,8 @@ on:
jobs:
add-hashicorp-contributed-label:
# Only run if this is NOT coming from a fork of Vault (if this is not true, it's community contributed)
if: ${{ github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name }}
# Only run if this is NOT coming from a fork of hashicorp/vault (if this is not true, it's community contributed)
if: ${{ github.repository == 'hashicorp/vault' && (github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name) }}
runs-on: ubuntu-latest
steps:
- name: "Add label to PR"