From 445ff63a0f542c4797f96f46b921089212374d2a Mon Sep 17 00:00:00 2001 From: Micaiah Martin Date: Tue, 22 Oct 2024 09:36:43 -0600 Subject: [PATCH] Just check on path --- .github/workflows/cleanup-ephemeral-environment.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cleanup-ephemeral-environment.yml b/.github/workflows/cleanup-ephemeral-environment.yml index d87b48ab0d..87f6525bd8 100644 --- a/.github/workflows/cleanup-ephemeral-environment.yml +++ b/.github/workflows/cleanup-ephemeral-environment.yml @@ -14,12 +14,11 @@ jobs: - name: Checkout PR uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 - - name: Validate config existed on branch + - name: Validate config exists in path id: validate-config run: | - # Search the git history for config files, exit if not found. - if [[ -n $(git rev-list --all -- "ephemeral-environments/$GITHUB_HEAD_REF.yaml") ]]; then - echo "Ephemeral environment config found on branch, continuing." + if [[ -f "ephemeral-environments/$GITHUB_HEAD_REF.yaml" ]]; then + echo "Ephemeral environment config found in path, continuing." echo "config-exists=true" >> $GITHUB_OUTPUT fi