diff --git a/.gitea/workflows/ci-test.yaml b/.gitea/workflows/ci-test.yaml index 17d9af4..b21ab6f 100644 --- a/.gitea/workflows/ci-test.yaml +++ b/.gitea/workflows/ci-test.yaml @@ -17,6 +17,17 @@ jobs: BW_PASSWORD: ${{ secrets.BW_PASSWORD }} steps: + + - name: Verificar se commit pede por [deploy-opentofu] + if: "!contains(gitea.event.head_commit.message, '[deploy-opentofu]')" + run: | + echo "Commit não contém [deploy-opentofu], a pipeline será ignorada." + exit 1 + + - name: Executar deploy opentofu + run: echo "Commit contém [deploy-opentofu], a pipeline será executada." + + - name: Updating apt-get run: | apt-get update -y