Skip to content

feat: add dedicated pipeline variable to determine whether to publish VHD blobs #5475

feat: add dedicated pipeline variable to determine whether to publish VHD blobs

feat: add dedicated pipeline variable to determine whether to publish VHD blobs #5475

name: validate-pull-request-source
on: pull_request
jobs:
validate-pull-request-source:
runs-on: ubuntu-latest
steps:
- name: Validate if PR is not from a forked repo
run: |
if [ "${{ github.event.pull_request.head.repo.full_name }}" != "${{ github.repository }}" ]; then
echo "Please create the PR from a branch in this repository, not from a forked repository."
exit 1
else
echo "PR is from a branch in this repository."
fi