From 44206525d048fd6fa5c5fe714e457acde14be87e Mon Sep 17 00:00:00 2001 From: Jay Varner Date: Wed, 29 Nov 2023 14:37:37 -0500 Subject: [PATCH] Set full workflow --- .github/workflows/dev-depoly.yml | 13 ++++--------- .github/workflows/dev-test.yml | 2 +- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/.github/workflows/dev-depoly.yml b/.github/workflows/dev-depoly.yml index e185a6dd..79fd6919 100644 --- a/.github/workflows/dev-depoly.yml +++ b/.github/workflows/dev-depoly.yml @@ -1,14 +1,9 @@ name: Dev-Deploy -# on: -# workflow_run: -# workflows: [Dev-Test] -# types: [completed] - on: - push: - branches: - - develop + workflow_run: + workflows: [Dev-Test] + types: [completed] permissions: id-token: write # This is required for requesting the JWT @@ -17,7 +12,7 @@ permissions: jobs: deploy: runs-on: ubuntu-latest - # if: ${{ github.event.workflow_run.conclusion == 'success' }} + if: ${{ github.event.workflow_run.conclusion == 'success' }} steps: - name: Checkout repository uses: actions/checkout@v3 diff --git a/.github/workflows/dev-test.yml b/.github/workflows/dev-test.yml index 0fbe4358..59324c8e 100644 --- a/.github/workflows/dev-test.yml +++ b/.github/workflows/dev-test.yml @@ -3,7 +3,7 @@ name: Dev-Test on: push: branches: - - main + - develop env: DATABASE_URL: postgres://user:password@localhost:5432/readux