diff --git a/.github/workflows/changeset.yml b/.github/workflows/changeset.yml new file mode 100644 index 000000000..f90c73d1e --- /dev/null +++ b/.github/workflows/changeset.yml @@ -0,0 +1,24 @@ +name: Changeset Workflow + +permissions: + contents: write + actions: write + +on: + push: + branches: + - pipe + workflow_dispatch: + +jobs: + changeset: + runs-on: ubuntu-latest + 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 }}" diff --git a/.github/workflows/ci_workflow.yml b/.github/workflows/ci_workflow.yml index 06ffc6e9e..535291a94 100644 --- a/.github/workflows/ci_workflow.yml +++ b/.github/workflows/ci_workflow.yml @@ -1,18 +1,19 @@ -name: CI +name: Deploy Workflow on: - pull_request: - branches: [ master ] - + workflow_run: + workflows: ["Changeset Workflow"] # Certifique-se de que o nome está correto e sem erros + types: + - failure # Pode ser 'completed' para pegar qualquer finalização + jobs: - ci: + deploy: 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: 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 }}" +