Skip to content

Commit

Permalink
Push this branch
Browse files Browse the repository at this point in the history
  • Loading branch information
pcraig3 committed Dec 24, 2024
1 parent 53128d2 commit 8482e79
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
Expand Down

0 comments on commit 8482e79

Please sign in to comment.