From a1c9966436d4f9b5d7f2affccceb868f82eccd10 Mon Sep 17 00:00:00 2001 From: Michel Wilhelm Date: Thu, 20 Nov 2025 11:47:42 -0300 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8(action.yml):=20adiciona=20input=20'co?= =?UTF-8?q?mmand'=20para=20controlar=20execu=C3=A7=C3=A3o=20condicional=20?= =?UTF-8?q?de=20etapas=20no=20workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- action.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index d0526d5..0c5b3ed 100644 --- a/action.yml +++ b/action.yml @@ -1,4 +1,4 @@ -name: 'TC Deployment' +name: 'Deployment' description: 'Trigger deployment webhook and report to Sentry' inputs: service: @@ -30,6 +30,10 @@ inputs: description: 'Timeout in ms' required: false default: '3600000' + command: + description: 'Command to run (deploy, hello)' + required: false + default: 'deploy' runs: using: "composite" @@ -39,12 +43,19 @@ runs: node-version: '20' - name: Install dependencies + if: inputs.command == 'deploy' shell: bash run: | cd ${{ github.action_path }} npm install --no-save --omit=dev + - name: Hello World + if: inputs.command == 'hello' + shell: bash + run: echo "Hello World" + - name: Run deployment script + if: inputs.command == 'deploy' shell: bash run: node ${{ github.action_path }}/main.js env: