mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-03 12:07:54 +00:00
Update verify-changes to support external docs branches (#20535)
* Update verify-changes to support external docs branches Signed-off-by: Jaymala Sinha <jaymala@hashicorp.com> * Revert QT-545 as it Enos workflow is not a workflow_run event Signed-off-by: Jaymala Sinha <jaymala@hashicorp.com> --------- Signed-off-by: Jaymala Sinha <jaymala@hashicorp.com>
This commit is contained in:
6
.github/scripts/verify_changes.sh
vendored
6
.github/scripts/verify_changes.sh
vendored
@@ -3,15 +3,13 @@
|
||||
|
||||
event_type=$1 # GH event type (pull_request)
|
||||
ref_name=$2 # branch reference that triggered the workflow
|
||||
head_ref=$3 # PR branch head ref
|
||||
base_ref=$4 # PR branch base ref
|
||||
base_ref=$3 # PR branch base ref
|
||||
|
||||
changed_dir=""
|
||||
|
||||
if [[ "$event_type" == "pull_request" ]]; then
|
||||
git fetch --no-tags --prune origin $head_ref
|
||||
git fetch --no-tags --prune origin $base_ref
|
||||
head_commit="origin/$head_ref"
|
||||
head_commit="HEAD"
|
||||
base_commit="origin/$base_ref"
|
||||
else
|
||||
git fetch --no-tags --prune origin $ref_name
|
||||
|
||||
Reference in New Issue
Block a user