From 8482e793a17a4bc57826e9ff99dd73966f1bea39 Mon Sep 17 00:00:00 2001 From: Paul Craig Date: Tue, 24 Dec 2024 12:47:31 -0500 Subject: [PATCH] Push this branch --- .github/workflows/main.yml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d55c92db..74b0d4d6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,6 +17,21 @@ jobs: branch: ${{ github.ref_name }} secrets: inherit + debug-branch: + if: always() # Always run this to debug the branch + needs: ci + runs-on: ubuntu-latest + steps: + - name: Print GitHub Context + run: | + echo "Ref: $GITHUB_REF" + echo "Ref name: $GITHUB_REF_NAME" + echo "Event name: $GITHUB_EVENT_NAME" + env: + GITHUB_REF: ${{ github.ref }} + GITHUB_REF_NAME: ${{ github.ref_name }} + GITHUB_EVENT_NAME: ${{ github.event_name }} + migrate: if: github.event_name == 'push' && github.ref_name == 'main' needs: ci @@ -27,8 +42,8 @@ jobs: GCP_IAM_SA_CREDENTIALS: ${{ secrets.GCP_IAM_SA_CREDENTIALS }} deploy: - if: github.event_name == 'push' && github.ref_name == 'main' - needs: migrate + if: github.event_name == 'pull_request' && github.ref_name == '134/merge' + needs: ci uses: ./.github/workflows/django_gcp_deploy.yml # Call the Deploy workflow with: github_sha: ${{ github.sha }}