From ef47d789ca2853daf3e24541314afd0429df9c83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tain=C3=A1=20Puja?= <84106003+tainagotgithub@users.noreply.github.com> Date: Mon, 6 Jan 2025 22:08:55 -0300 Subject: [PATCH 01/36] Update ci_workflow.yml --- .github/workflows/ci_workflow.yml | 36 ++++++++++++++++++++----------- 1 file changed, 24 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci_workflow.yml b/.github/workflows/ci_workflow.yml index 06ffc6e9e..cc80b41b4 100644 --- a/.github/workflows/ci_workflow.yml +++ b/.github/workflows/ci_workflow.yml @@ -1,18 +1,30 @@ -name: CI +name: Deploy Workflow on: - pull_request: - branches: [ master ] + workflow_run: + workflows: ["changeset"] + types: + - completed jobs: - ci: + deploy: + if: ${{ github.event.workflow_run.conclusion == 'success' }} runs-on: ubuntu-latest + steps: - - uses: actions/checkout@v3 - - name: Install flake8 - run: pip install flake8 - - name: Give executable permissions to run_ci.sh inside the scripts directory - run: chmod a+x scripts/run_ci.sh - - name: Run the ci script inside the scripts folder - run: bash scripts/run_ci.sh - shell: bash \ No newline at end of file + - name: Checkout código + uses: actions/checkout@v4 + + - name: Configurar Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + + - name: Instalar dependências + run: npm install + + - name: Construir aplicação + run: npm run build + + - name: Fazer deploy + run: echo "Deploy bem-sucedido após changeset!" From 1f3c8d071d3865d85ec28cd8f5417211b307fb12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tain=C3=A1=20Puja?= <84106003+tainagotgithub@users.noreply.github.com> Date: Mon, 6 Jan 2025 22:14:50 -0300 Subject: [PATCH 02/36] Create changeset.yml --- .github/workflows/changeset.yml | 35 +++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/changeset.yml diff --git a/.github/workflows/changeset.yml b/.github/workflows/changeset.yml new file mode 100644 index 000000000..c3d4d2ab6 --- /dev/null +++ b/.github/workflows/changeset.yml @@ -0,0 +1,35 @@ +name: Changeset Workflow + +on: + push: + branches: + - main + +jobs: + changeset: + runs-on: ubuntu-latest + environment: + name: production + url: https://example.com + steps: + - name: Checkout código + uses: actions/checkout@v4 + + - name: Configurar Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + + - name: Instalar dependências + run: npm install + + - name: Rodar testes + run: npm test + + - name: Build aplicação + run: npm run build + + - name: Aprovação Manual + run: echo "Aguardando aprovação para prosseguir para produção." + env: + GITHUB_ENVIRONMENT: production From c88895eca56f1793ebb635483682499b75bc8be5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tain=C3=A1=20Puja?= <84106003+tainagotgithub@users.noreply.github.com> Date: Mon, 6 Jan 2025 22:18:21 -0300 Subject: [PATCH 03/36] Update changeset.yml --- .github/workflows/changeset.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/changeset.yml b/.github/workflows/changeset.yml index c3d4d2ab6..a0d9e5582 100644 --- a/.github/workflows/changeset.yml +++ b/.github/workflows/changeset.yml @@ -4,6 +4,7 @@ on: push: branches: - main + workflow_dispatch: jobs: changeset: From 6299e5f92c6c66e7c3c900e0c9ac34abf9053689 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tain=C3=A1=20Puja?= <84106003+tainagotgithub@users.noreply.github.com> Date: Mon, 6 Jan 2025 22:22:20 -0300 Subject: [PATCH 04/36] Update changeset.yml --- .github/workflows/changeset.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/changeset.yml b/.github/workflows/changeset.yml index a0d9e5582..34144cd70 100644 --- a/.github/workflows/changeset.yml +++ b/.github/workflows/changeset.yml @@ -4,6 +4,7 @@ on: push: branches: - main + - pipe workflow_dispatch: jobs: From 81fc39b8143d87975f14a9b1a36ffcc7f1d21bfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tain=C3=A1=20Puja?= <84106003+tainagotgithub@users.noreply.github.com> Date: Mon, 6 Jan 2025 22:24:42 -0300 Subject: [PATCH 05/36] Update changeset.yml --- .github/workflows/changeset.yml | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/.github/workflows/changeset.yml b/.github/workflows/changeset.yml index 34144cd70..3f909c0cd 100644 --- a/.github/workflows/changeset.yml +++ b/.github/workflows/changeset.yml @@ -12,25 +12,10 @@ jobs: runs-on: ubuntu-latest environment: name: production - url: https://example.com steps: - - name: Checkout código - uses: actions/checkout@v4 - - - name: Configurar Node.js - uses: actions/setup-node@v4 - with: - node-version: '20' - - name: Instalar dependências run: npm install - - name: Rodar testes - run: npm test - - - name: Build aplicação - run: npm run build - - name: Aprovação Manual run: echo "Aguardando aprovação para prosseguir para produção." env: From b88c2ab9b701e0a356686e1469541719cfa97523 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tain=C3=A1=20Puja?= <84106003+tainagotgithub@users.noreply.github.com> Date: Mon, 6 Jan 2025 22:25:32 -0300 Subject: [PATCH 06/36] Update changeset.yml --- .github/workflows/changeset.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/changeset.yml b/.github/workflows/changeset.yml index 3f909c0cd..d3eb25f93 100644 --- a/.github/workflows/changeset.yml +++ b/.github/workflows/changeset.yml @@ -13,9 +13,6 @@ jobs: environment: name: production steps: - - name: Instalar dependências - run: npm install - - name: Aprovação Manual run: echo "Aguardando aprovação para prosseguir para produção." env: From bf3f3f9d0f8b5e44b245e10cd2f4459a913e2bb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tain=C3=A1=20Puja?= <84106003+tainagotgithub@users.noreply.github.com> Date: Mon, 6 Jan 2025 22:29:37 -0300 Subject: [PATCH 07/36] Update ci_workflow.yml --- .github/workflows/ci_workflow.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci_workflow.yml b/.github/workflows/ci_workflow.yml index cc80b41b4..0cedba1b0 100644 --- a/.github/workflows/ci_workflow.yml +++ b/.github/workflows/ci_workflow.yml @@ -2,7 +2,7 @@ name: Deploy Workflow on: workflow_run: - workflows: ["changeset"] + workflows: ["Changeset Workflow"] types: - completed From b1813b5afbae03549585d96496a936cb572ff429 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tain=C3=A1=20Puja?= <84106003+tainagotgithub@users.noreply.github.com> Date: Mon, 6 Jan 2025 22:32:52 -0300 Subject: [PATCH 08/36] Update ci_workflow.yml --- .github/workflows/ci_workflow.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci_workflow.yml b/.github/workflows/ci_workflow.yml index 0cedba1b0..4be21645c 100644 --- a/.github/workflows/ci_workflow.yml +++ b/.github/workflows/ci_workflow.yml @@ -5,6 +5,7 @@ on: workflows: ["Changeset Workflow"] types: - completed + workflow_dispatch: jobs: deploy: From 76d5c71916a1645a7abc9b3d0847ba2aa85aa640 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tain=C3=A1=20Puja?= <84106003+tainagotgithub@users.noreply.github.com> Date: Mon, 6 Jan 2025 22:37:43 -0300 Subject: [PATCH 09/36] Update ci_workflow.yml --- .github/workflows/ci_workflow.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci_workflow.yml b/.github/workflows/ci_workflow.yml index 4be21645c..d9dfa0e0e 100644 --- a/.github/workflows/ci_workflow.yml +++ b/.github/workflows/ci_workflow.yml @@ -5,12 +5,16 @@ on: workflows: ["Changeset Workflow"] types: - completed - workflow_dispatch: + workflow_dispatch: # Permite rodar manualmente pelo GitHub UI jobs: deploy: - if: ${{ github.event.workflow_run.conclusion == 'success' }} - runs-on: ubuntu-latest + if: >- + ${{ + (github.event_name == 'workflow_dispatch') || + (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') + }} + runs-on: ubuntu-latest steps: - name: Checkout código From 3e9f8288be751127700ad335f6d33a2d0a5d30ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tain=C3=A1=20Puja?= <84106003+tainagotgithub@users.noreply.github.com> Date: Mon, 6 Jan 2025 22:39:59 -0300 Subject: [PATCH 10/36] Update ci_workflow.yml --- .github/workflows/ci_workflow.yml | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/.github/workflows/ci_workflow.yml b/.github/workflows/ci_workflow.yml index d9dfa0e0e..0456b8e02 100644 --- a/.github/workflows/ci_workflow.yml +++ b/.github/workflows/ci_workflow.yml @@ -14,22 +14,8 @@ jobs: (github.event_name == 'workflow_dispatch') || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') }} - runs-on: ubuntu-latest + runs-on: ubuntu-latest steps: - - name: Checkout código - uses: actions/checkout@v4 - - - name: Configurar Node.js - uses: actions/setup-node@v4 - with: - node-version: '20' - - - name: Instalar dependências - run: npm install - - - name: Construir aplicação - run: npm run build - - name: Fazer deploy run: echo "Deploy bem-sucedido após changeset!" From 2342d732ad6847525e1f1ba2d2197a4d31da9992 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tain=C3=A1=20Puja?= <84106003+tainagotgithub@users.noreply.github.com> Date: Mon, 6 Jan 2025 22:43:45 -0300 Subject: [PATCH 11/36] Update ci_workflow.yml --- .github/workflows/ci_workflow.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/ci_workflow.yml b/.github/workflows/ci_workflow.yml index 0456b8e02..72e1c8e16 100644 --- a/.github/workflows/ci_workflow.yml +++ b/.github/workflows/ci_workflow.yml @@ -5,13 +5,11 @@ on: workflows: ["Changeset Workflow"] types: - completed - workflow_dispatch: # Permite rodar manualmente pelo GitHub UI jobs: deploy: if: >- ${{ - (github.event_name == 'workflow_dispatch') || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') }} runs-on: ubuntu-latest From 1802495fbcb48209ef74d237d9980e1e062db2b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tain=C3=A1=20Puja?= <84106003+tainagotgithub@users.noreply.github.com> Date: Mon, 6 Jan 2025 22:47:20 -0300 Subject: [PATCH 12/36] Update ci_workflow.yml From 7872e3f813758f60c7049f077f9c7fbdc7af44a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tain=C3=A1=20Puja?= <84106003+tainagotgithub@users.noreply.github.com> Date: Mon, 6 Jan 2025 22:50:56 -0300 Subject: [PATCH 13/36] Update ci_workflow.yml --- .github/workflows/ci_workflow.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/ci_workflow.yml b/.github/workflows/ci_workflow.yml index 72e1c8e16..cef4f7fb9 100644 --- a/.github/workflows/ci_workflow.yml +++ b/.github/workflows/ci_workflow.yml @@ -8,10 +8,7 @@ on: jobs: deploy: - if: >- - ${{ - (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') - }} + if: ${{ github.event.workflow_run.conclusion == 'success' }} runs-on: ubuntu-latest steps: From 9b1e337ec031aa887f43652a4834a028bb44bbaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tain=C3=A1=20Puja?= <84106003+tainagotgithub@users.noreply.github.com> Date: Mon, 6 Jan 2025 22:54:20 -0300 Subject: [PATCH 14/36] Update ci_workflow.yml --- .github/workflows/ci_workflow.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci_workflow.yml b/.github/workflows/ci_workflow.yml index cef4f7fb9..59eeb2191 100644 --- a/.github/workflows/ci_workflow.yml +++ b/.github/workflows/ci_workflow.yml @@ -8,7 +8,7 @@ on: jobs: deploy: - if: ${{ github.event.workflow_run.conclusion == 'success' }} + #if: ${{ github.event.workflow_run.conclusion == 'success' }} runs-on: ubuntu-latest steps: From 6607e9445c88694aee0ed4600e7612f1b5356b78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tain=C3=A1=20Puja?= <84106003+tainagotgithub@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:01:02 -0300 Subject: [PATCH 15/36] Update ci_workflow.yml --- .github/workflows/ci_workflow.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci_workflow.yml b/.github/workflows/ci_workflow.yml index 59eeb2191..6602f2efb 100644 --- a/.github/workflows/ci_workflow.yml +++ b/.github/workflows/ci_workflow.yml @@ -3,12 +3,12 @@ name: Deploy Workflow on: workflow_run: workflows: ["Changeset Workflow"] - types: - - completed + # types: +# - completed jobs: deploy: - #if: ${{ github.event.workflow_run.conclusion == 'success' }} + if: ${{ github.event.workflow_run.conclusion == 'success' }} runs-on: ubuntu-latest steps: From c588d20f643654407fc1b1a3b16a8521015a4265 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tain=C3=A1=20Puja?= <84106003+tainagotgithub@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:03:48 -0300 Subject: [PATCH 16/36] Update ci_workflow.yml --- .github/workflows/ci_workflow.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci_workflow.yml b/.github/workflows/ci_workflow.yml index 6602f2efb..6c62ebbbf 100644 --- a/.github/workflows/ci_workflow.yml +++ b/.github/workflows/ci_workflow.yml @@ -3,9 +3,10 @@ name: Deploy Workflow on: workflow_run: workflows: ["Changeset Workflow"] - # types: -# - completed - + types: + - completed + workflow_dispatch: + jobs: deploy: if: ${{ github.event.workflow_run.conclusion == 'success' }} From f0ec436508a3cb84baa3c62d37430fc95c0d26bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tain=C3=A1=20Puja?= <84106003+tainagotgithub@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:05:25 -0300 Subject: [PATCH 17/36] Update ci_workflow.yml --- .github/workflows/ci_workflow.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci_workflow.yml b/.github/workflows/ci_workflow.yml index 6c62ebbbf..4eb667244 100644 --- a/.github/workflows/ci_workflow.yml +++ b/.github/workflows/ci_workflow.yml @@ -1,10 +1,10 @@ name: Deploy Workflow on: - workflow_run: - workflows: ["Changeset Workflow"] - types: - - completed +# workflow_run: +# workflows: ["Changeset Workflow"] +# types: +# - completed workflow_dispatch: jobs: From 78a9629e5ce83bc9c0739d4760f60e30f017dd4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tain=C3=A1=20Puja?= <84106003+tainagotgithub@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:06:15 -0300 Subject: [PATCH 18/36] Update ci_workflow.yml --- .github/workflows/ci_workflow.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci_workflow.yml b/.github/workflows/ci_workflow.yml index 4eb667244..1c12cb235 100644 --- a/.github/workflows/ci_workflow.yml +++ b/.github/workflows/ci_workflow.yml @@ -5,6 +5,10 @@ on: # workflows: ["Changeset Workflow"] # types: # - completed + push: + branches: + - main + - pipe workflow_dispatch: jobs: From 1dba5e08f7f419f8e5f4c553a63d70f622d853ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tain=C3=A1=20Puja?= <84106003+tainagotgithub@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:10:35 -0300 Subject: [PATCH 19/36] Update ci_workflow.yml --- .github/workflows/ci_workflow.yml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci_workflow.yml b/.github/workflows/ci_workflow.yml index 1c12cb235..cef4f7fb9 100644 --- a/.github/workflows/ci_workflow.yml +++ b/.github/workflows/ci_workflow.yml @@ -1,16 +1,11 @@ name: Deploy Workflow on: -# workflow_run: -# workflows: ["Changeset Workflow"] -# types: -# - completed - push: - branches: - - main - - pipe - workflow_dispatch: - + workflow_run: + workflows: ["Changeset Workflow"] + types: + - completed + jobs: deploy: if: ${{ github.event.workflow_run.conclusion == 'success' }} From 4f7b09ce1f339b8e899c1e7374ca522205b1386b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tain=C3=A1=20Puja?= <84106003+tainagotgithub@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:18:33 -0300 Subject: [PATCH 20/36] Update ci_workflow.yml --- .github/workflows/ci_workflow.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci_workflow.yml b/.github/workflows/ci_workflow.yml index cef4f7fb9..34ffb28d5 100644 --- a/.github/workflows/ci_workflow.yml +++ b/.github/workflows/ci_workflow.yml @@ -8,8 +8,10 @@ on: jobs: deploy: - if: ${{ github.event.workflow_run.conclusion == 'success' }} + if: ${{ github.event.workflow_run.conclusion == 'success' }} # Só se o Changeset Workflow tiver sido bem-sucedido runs-on: ubuntu-latest + environment: + name: production # Ambiente específico (opcional) steps: - name: Fazer deploy From 9496b08d361d69cb822e6bb4e21ae1cf6ada8c34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tain=C3=A1=20Puja?= <84106003+tainagotgithub@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:22:45 -0300 Subject: [PATCH 21/36] Update changeset.yml --- .github/workflows/changeset.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/changeset.yml b/.github/workflows/changeset.yml index d3eb25f93..6d57c0cb8 100644 --- a/.github/workflows/changeset.yml +++ b/.github/workflows/changeset.yml @@ -1,4 +1,4 @@ -name: Changeset Workflow +name: changeset on: push: From 1984f7ef1370c4002e2ebb94cb9f82a36c8b4026 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tain=C3=A1=20Puja?= <84106003+tainagotgithub@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:23:04 -0300 Subject: [PATCH 22/36] Update ci_workflow.yml --- .github/workflows/ci_workflow.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci_workflow.yml b/.github/workflows/ci_workflow.yml index 34ffb28d5..e2b442293 100644 --- a/.github/workflows/ci_workflow.yml +++ b/.github/workflows/ci_workflow.yml @@ -2,7 +2,7 @@ name: Deploy Workflow on: workflow_run: - workflows: ["Changeset Workflow"] + workflows: ["changeset"] types: - completed From 67c2b4e53d61635e7a5f2ee07ed820222f3aa011 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tain=C3=A1=20Puja?= <84106003+tainagotgithub@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:26:54 -0300 Subject: [PATCH 23/36] Update changeset.yml --- .github/workflows/changeset.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/changeset.yml b/.github/workflows/changeset.yml index 6d57c0cb8..07120f8ad 100644 --- a/.github/workflows/changeset.yml +++ b/.github/workflows/changeset.yml @@ -15,5 +15,5 @@ jobs: steps: - name: Aprovação Manual run: echo "Aguardando aprovação para prosseguir para produção." - env: - GITHUB_ENVIRONMENT: production + #env: + # GITHUB_ENVIRONMENT: production From acda29460bcf0a05d30b64a8aa910a27a2994dfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tain=C3=A1=20Puja?= <84106003+tainagotgithub@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:31:29 -0300 Subject: [PATCH 24/36] Update ci_workflow.yml --- .github/workflows/ci_workflow.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci_workflow.yml b/.github/workflows/ci_workflow.yml index e2b442293..086433d81 100644 --- a/.github/workflows/ci_workflow.yml +++ b/.github/workflows/ci_workflow.yml @@ -16,3 +16,7 @@ jobs: steps: - name: Fazer deploy run: echo "Deploy bem-sucedido após changeset!" + - name: Exibir status do evento + run: | + echo "Workflow Run status: ${{ github.event.workflow_run.conclusion }}" + echo "ID do Workflow: ${{ github.event.workflow_run.id }}" From 4a488ddc701b900e342c4186ef01a2ada2f18381 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tain=C3=A1=20Puja?= <84106003+tainagotgithub@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:34:41 -0300 Subject: [PATCH 25/36] Update ci_workflow.yml --- .github/workflows/ci_workflow.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci_workflow.yml b/.github/workflows/ci_workflow.yml index 086433d81..0f53bea46 100644 --- a/.github/workflows/ci_workflow.yml +++ b/.github/workflows/ci_workflow.yml @@ -8,10 +8,10 @@ on: jobs: deploy: - if: ${{ github.event.workflow_run.conclusion == 'success' }} # Só se o Changeset Workflow tiver sido bem-sucedido +# if: ${{ github.event.workflow_run.conclusion == 'success' }} # Só se o Changeset Workflow tiver sido bem-sucedido runs-on: ubuntu-latest - environment: - name: production # Ambiente específico (opcional) + # environment: + # name: production # Ambiente específico (opcional) steps: - name: Fazer deploy From b0893353781f4c7f9614f9f7d7e6692d72c837e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tain=C3=A1=20Puja?= <84106003+tainagotgithub@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:36:32 -0300 Subject: [PATCH 26/36] Update ci_workflow.yml --- .github/workflows/ci_workflow.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci_workflow.yml b/.github/workflows/ci_workflow.yml index 0f53bea46..edb414c4c 100644 --- a/.github/workflows/ci_workflow.yml +++ b/.github/workflows/ci_workflow.yml @@ -5,6 +5,7 @@ on: workflows: ["changeset"] types: - completed + - success jobs: deploy: From ab1af764f3e8be7f436708ce8bd8f2d86a3da854 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tain=C3=A1=20Puja?= <84106003+tainagotgithub@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:38:51 -0300 Subject: [PATCH 27/36] Update ci_workflow.yml --- .github/workflows/ci_workflow.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/ci_workflow.yml b/.github/workflows/ci_workflow.yml index edb414c4c..e5f552ca8 100644 --- a/.github/workflows/ci_workflow.yml +++ b/.github/workflows/ci_workflow.yml @@ -4,7 +4,6 @@ on: workflow_run: workflows: ["changeset"] types: - - completed - success jobs: From 52be47afe667e259f658ead3be2ed611bc3ceaee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tain=C3=A1=20Puja?= <84106003+tainagotgithub@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:40:46 -0300 Subject: [PATCH 28/36] Update changeset.yml --- .github/workflows/changeset.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/changeset.yml b/.github/workflows/changeset.yml index 07120f8ad..65d4a7524 100644 --- a/.github/workflows/changeset.yml +++ b/.github/workflows/changeset.yml @@ -1,19 +1,14 @@ -name: changeset +name: Changeset Workflow on: push: branches: - - main - pipe workflow_dispatch: jobs: changeset: runs-on: ubuntu-latest - environment: - name: production steps: - - name: Aprovação Manual - run: echo "Aguardando aprovação para prosseguir para produção." - #env: - # GITHUB_ENVIRONMENT: production + - name: Teste de mudanças + run: echo "Mudanças processadas com sucesso!" From 1c5cf04ca6d364906b78261c218716f328767659 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tain=C3=A1=20Puja?= <84106003+tainagotgithub@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:41:03 -0300 Subject: [PATCH 29/36] Update ci_workflow.yml --- .github/workflows/ci_workflow.yml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci_workflow.yml b/.github/workflows/ci_workflow.yml index e5f552ca8..4f3a98344 100644 --- a/.github/workflows/ci_workflow.yml +++ b/.github/workflows/ci_workflow.yml @@ -2,21 +2,13 @@ name: Deploy Workflow on: workflow_run: - workflows: ["changeset"] + workflows: ["Changeset Workflow"] types: - success jobs: deploy: -# if: ${{ github.event.workflow_run.conclusion == 'success' }} # Só se o Changeset Workflow tiver sido bem-sucedido runs-on: ubuntu-latest - # environment: - # name: production # Ambiente específico (opcional) - steps: - - name: Fazer deploy + - name: Deploy bem-sucedido run: echo "Deploy bem-sucedido após changeset!" - - name: Exibir status do evento - run: | - echo "Workflow Run status: ${{ github.event.workflow_run.conclusion }}" - echo "ID do Workflow: ${{ github.event.workflow_run.id }}" From ea5e11df30c052c74ef245d696339ce81cf415d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tain=C3=A1=20Puja?= <84106003+tainagotgithub@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:43:19 -0300 Subject: [PATCH 30/36] Update ci_workflow.yml --- .github/workflows/ci_workflow.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci_workflow.yml b/.github/workflows/ci_workflow.yml index 4f3a98344..8eb9e9eba 100644 --- a/.github/workflows/ci_workflow.yml +++ b/.github/workflows/ci_workflow.yml @@ -4,7 +4,7 @@ on: workflow_run: workflows: ["Changeset Workflow"] types: - - success + - completed jobs: deploy: From 40b0b98e7000ebb0520f257e77786d771364ed99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tain=C3=A1=20Puja?= <84106003+tainagotgithub@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:44:17 -0300 Subject: [PATCH 31/36] Update ci_workflow.yml --- .github/workflows/ci_workflow.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci_workflow.yml b/.github/workflows/ci_workflow.yml index 8eb9e9eba..6f0ec06cc 100644 --- a/.github/workflows/ci_workflow.yml +++ b/.github/workflows/ci_workflow.yml @@ -5,6 +5,9 @@ on: workflows: ["Changeset Workflow"] types: - completed +permissions: + contents: write + actions: write jobs: deploy: From b84540ac59f40b3beabd4cdd11eaf09bb4215f5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tain=C3=A1=20Puja?= <84106003+tainagotgithub@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:44:31 -0300 Subject: [PATCH 32/36] Update changeset.yml --- .github/workflows/changeset.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/changeset.yml b/.github/workflows/changeset.yml index 65d4a7524..fe7a9bf43 100644 --- a/.github/workflows/changeset.yml +++ b/.github/workflows/changeset.yml @@ -1,5 +1,9 @@ name: Changeset Workflow +permissions: + contents: write + actions: write + on: push: branches: From b69d16d757bca48ae187bc7117bfc1cebe4ed637 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tain=C3=A1=20Puja?= <84106003+tainagotgithub@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:47:47 -0300 Subject: [PATCH 33/36] Update ci_workflow.yml --- .github/workflows/ci_workflow.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci_workflow.yml b/.github/workflows/ci_workflow.yml index 6f0ec06cc..96bcfb24b 100644 --- a/.github/workflows/ci_workflow.yml +++ b/.github/workflows/ci_workflow.yml @@ -2,16 +2,20 @@ name: Deploy Workflow on: workflow_run: - workflows: ["Changeset Workflow"] + workflows: ["Changeset Workflow"] # Certifique-se de que o nome está correto e sem erros types: - - completed -permissions: - contents: write - actions: write - + - success # Pode ser 'completed' para pegar qualquer finalização + jobs: deploy: runs-on: ubuntu-latest + steps: - - name: Deploy bem-sucedido + - name: Verificar variáveis + run: | + echo "Evento do workflow: ${{ github.event_name }}" + echo "Conclusão do workflow: ${{ github.event.workflow_run.conclusion }}" + echo "ID do Workflow: ${{ github.event.workflow_run.id }}" + + - name: Fazer deploy run: echo "Deploy bem-sucedido após changeset!" From 8d54c3a7c19562179285a57d01ca6cea1f20efaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tain=C3=A1=20Puja?= <84106003+tainagotgithub@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:49:13 -0300 Subject: [PATCH 34/36] Update changeset.yml --- .github/workflows/changeset.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/changeset.yml b/.github/workflows/changeset.yml index fe7a9bf43..f90c73d1e 100644 --- a/.github/workflows/changeset.yml +++ b/.github/workflows/changeset.yml @@ -16,3 +16,9 @@ jobs: steps: - name: Teste de mudanças run: echo "Mudanças processadas com sucesso!" + - name: Verificar variáveis + - name : vars + run: | + echo "Evento do workflow: ${{ github.event_name }}" + echo "Conclusão do workflow: ${{ github.event.workflow_run.conclusion }}" + echo "ID do Workflow: ${{ github.event.workflow_run.id }}" From fc155e2ed6863032df34348fee0b00e2aa47db73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tain=C3=A1=20Puja?= <84106003+tainagotgithub@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:50:27 -0300 Subject: [PATCH 35/36] Update ci_workflow.yml --- .github/workflows/ci_workflow.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/ci_workflow.yml b/.github/workflows/ci_workflow.yml index 96bcfb24b..09c8cfd48 100644 --- a/.github/workflows/ci_workflow.yml +++ b/.github/workflows/ci_workflow.yml @@ -17,5 +17,3 @@ jobs: echo "Conclusão do workflow: ${{ github.event.workflow_run.conclusion }}" echo "ID do Workflow: ${{ github.event.workflow_run.id }}" - - name: Fazer deploy - run: echo "Deploy bem-sucedido após changeset!" From e8ed955ed13fd62ae5e22a76d785452a60e0c497 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tain=C3=A1=20Puja?= <84106003+tainagotgithub@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:51:13 -0300 Subject: [PATCH 36/36] Update ci_workflow.yml --- .github/workflows/ci_workflow.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci_workflow.yml b/.github/workflows/ci_workflow.yml index 09c8cfd48..535291a94 100644 --- a/.github/workflows/ci_workflow.yml +++ b/.github/workflows/ci_workflow.yml @@ -4,7 +4,7 @@ on: workflow_run: workflows: ["Changeset Workflow"] # Certifique-se de que o nome está correto e sem erros types: - - success # Pode ser 'completed' para pegar qualquer finalização + - failure # Pode ser 'completed' para pegar qualquer finalização jobs: deploy: