From fa3d82453fb0fada31071236e74f586f458ee2d7 Mon Sep 17 00:00:00 2001 From: Stefan Hattrell <29941279+digorgonzola@users.noreply.github.com> Date: Thu, 1 Feb 2024 12:01:42 +1100 Subject: [PATCH] github: add dependency to deploy trigger to ensure correct sequence --- .github/workflows/build-production.yml | 1 + .github/workflows/build-staging.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/build-production.yml b/.github/workflows/build-production.yml index 7ea7183..c13181e 100644 --- a/.github/workflows/build-production.yml +++ b/.github/workflows/build-production.yml @@ -62,6 +62,7 @@ jobs: trigger_deploy: runs-on: ubuntu-latest + needs: [build_test_push] steps: - name: Generate App Token uses: actions/create-github-app-token@v1 diff --git a/.github/workflows/build-staging.yml b/.github/workflows/build-staging.yml index a45e69d..595eadd 100644 --- a/.github/workflows/build-staging.yml +++ b/.github/workflows/build-staging.yml @@ -66,6 +66,7 @@ jobs: trigger_deploy: runs-on: ubuntu-latest + needs: [build_test_push] steps: - name: Generate App Token uses: actions/create-github-app-token@v1