From f989fac5da32a641265497ee9baf3037714d08c1 Mon Sep 17 00:00:00 2001 From: Vitor Hideyoshi Date: Tue, 24 Oct 2023 21:18:41 -0300 Subject: [PATCH] Fixes Deploy Dispatcher --- .github/workflows/deploy-prod.yml | 6 ++++-- .github/workflows/deploy-staging.yml | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-prod.yml b/.github/workflows/deploy-prod.yml index 4eb56bd..fe2affd 100644 --- a/.github/workflows/deploy-prod.yml +++ b/.github/workflows/deploy-prod.yml @@ -12,9 +12,11 @@ jobs: name: Build environment: prod runs-on: ubuntu-latest - if: github.ref == 'refs/heads/main' steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 + with: + ref: main + - name: Set up Python 3.8 uses: actions/setup-python@v3 with: diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml index 2c21c91..f80b7ec 100644 --- a/.github/workflows/deploy-staging.yml +++ b/.github/workflows/deploy-staging.yml @@ -12,9 +12,11 @@ jobs: name: Build environment: staging runs-on: ubuntu-latest - if: github.ref == 'refs/heads/staging' steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 + with: + ref: staging + - name: Set up Python 3.8 uses: actions/setup-python@v3 with: