diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 576fea0..726d7e1 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -35,12 +35,15 @@ jobs: # Branch Name Validation for Pull Requests validate_branch_name: - if: github.event_name == 'pull_request' runs-on: ubuntu-latest steps: - name: Validate branch name run: | - BRANCH_NAME="${{ github.head_ref }}" + if [ "${{ github.event_name }}" == "pull_request" ]; then + BRANCH_NAME=${{ github.head_ref }} + else + BRANCH_NAME=${{ github.ref_name }} + fi echo "Validating branch name: $BRANCH_NAME" # Allow 'staging' and 'main' branches diff --git a/observer b/observer index d2fec5e..9093d11 160000 --- a/observer +++ b/observer @@ -1 +1 @@ -Subproject commit d2fec5eb25bfaafd5eb193fe9ea4075d18831e7e +Subproject commit 9093d11be801d9f3043e06158132463d47f70887