From e7b1040799ca69d584d115abfa5e184c3b757fe5 Mon Sep 17 00:00:00 2001 From: Vitor Hideyoshi Date: Tue, 24 Oct 2023 20:46:35 -0300 Subject: [PATCH 1/3] Fixes Deploy Dispatcher --- .github/workflows/deploy-prod.yml | 1 + .github/workflows/deploy-staging.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/deploy-prod.yml b/.github/workflows/deploy-prod.yml index 9af6e42..4eb56bd 100644 --- a/.github/workflows/deploy-prod.yml +++ b/.github/workflows/deploy-prod.yml @@ -12,6 +12,7 @@ jobs: name: Build environment: prod runs-on: ubuntu-latest + if: github.ref == 'refs/heads/main' steps: - uses: actions/checkout@v3 - name: Set up Python 3.8 diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml index ec8a166..2c21c91 100644 --- a/.github/workflows/deploy-staging.yml +++ b/.github/workflows/deploy-staging.yml @@ -12,6 +12,7 @@ jobs: name: Build environment: staging runs-on: ubuntu-latest + if: github.ref == 'refs/heads/staging' steps: - uses: actions/checkout@v3 - name: Set up Python 3.8 From f989fac5da32a641265497ee9baf3037714d08c1 Mon Sep 17 00:00:00 2001 From: Vitor Hideyoshi Date: Tue, 24 Oct 2023 21:18:41 -0300 Subject: [PATCH 2/3] 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: From bc46953519b672b4217ccd4bb615e445c92331b2 Mon Sep 17 00:00:00 2001 From: Vitor Hideyoshi Date: Tue, 24 Oct 2023 21:26:36 -0300 Subject: [PATCH 3/3] Removes Staging Dispatcher --- .github/workflows/deploy-prod.yml | 4 +--- .github/workflows/deploy-staging.yml | 5 ----- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/deploy-prod.yml b/.github/workflows/deploy-prod.yml index fe2affd..b055a4d 100644 --- a/.github/workflows/deploy-prod.yml +++ b/.github/workflows/deploy-prod.yml @@ -12,11 +12,9 @@ jobs: name: Build environment: prod runs-on: ubuntu-latest + steps: - 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 f80b7ec..844016a 100644 --- a/.github/workflows/deploy-staging.yml +++ b/.github/workflows/deploy-staging.yml @@ -1,8 +1,6 @@ name: remote ssh command on: - repository_dispatch: - types: [deploy-staging] push: branches: - staging @@ -14,9 +12,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - with: - ref: staging - - name: Set up Python 3.8 uses: actions/setup-python@v3 with: