From 8e2168ff4394fcb10f97221c431594035bd0d0ae Mon Sep 17 00:00:00 2001 From: adrianmf94 Date: Fri, 21 Jun 2024 23:05:31 +0200 Subject: [PATCH 1/3] task: Forced poetry lock --- .github/workflows/deploy-dev.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml index 5549b03ab..92de4ca24 100644 --- a/.github/workflows/deploy-dev.yml +++ b/.github/workflows/deploy-dev.yml @@ -1,6 +1,6 @@ name: Pulumi Deploy on: - push: + pull_request: branches: - develop jobs: @@ -32,6 +32,19 @@ jobs: AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} AWS_REGION: ${{ secrets.AWS_REGION }} + # Install & configure poetry + - name: Install Poetry + uses: snok/install-poetry@v1 + with: + virtualenvs-create: false + virtualenvs-in-project: false + + # Run Poetry lock --no-update + - name: Poetry Lock + run: | + source $GITHUB_ENV + poetry lock --directory backend --no-update + # Create and activate the virtual environment - name: Set up Python virtual environment run: | From 605a7ad68939667f0e14256add8ec45a6d35c593 Mon Sep 17 00:00:00 2001 From: adrianmf94 Date: Fri, 21 Jun 2024 23:16:18 +0200 Subject: [PATCH 2/3] task: Rollback to trigger on push --- .github/workflows/deploy-dev.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml index 92de4ca24..f51365772 100644 --- a/.github/workflows/deploy-dev.yml +++ b/.github/workflows/deploy-dev.yml @@ -1,6 +1,6 @@ name: Pulumi Deploy on: - pull_request: + push: branches: - develop jobs: From c8c8a2d6ff543f1aada1755916b5738ca9cf13cd Mon Sep 17 00:00:00 2001 From: adrianmf94 Date: Fri, 21 Jun 2024 23:33:03 +0200 Subject: [PATCH 3/3] task: $GITHUB_ENV no longer needed --- .github/workflows/deploy-dev.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml index f51365772..fa41eaa1a 100644 --- a/.github/workflows/deploy-dev.yml +++ b/.github/workflows/deploy-dev.yml @@ -42,7 +42,6 @@ jobs: # Run Poetry lock --no-update - name: Poetry Lock run: | - source $GITHUB_ENV poetry lock --directory backend --no-update # Create and activate the virtual environment