From 93831c3d4040c2d07cbcfab46e87357e5c2e34e3 Mon Sep 17 00:00:00 2001 From: GomathiselviS Date: Wed, 25 Oct 2023 11:16:10 -0400 Subject: [PATCH] Remove changelog from all_green workflow --- .github/workflows/all_green_check.yml | 6 ------ .github/workflows/changelog.yml | 20 +++++++++++++++++--- 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/.github/workflows/all_green_check.yml b/.github/workflows/all_green_check.yml index 9d6ed407964..f594c597f6c 100644 --- a/.github/workflows/all_green_check.yml +++ b/.github/workflows/all_green_check.yml @@ -10,8 +10,6 @@ on: # yamllint disable-line rule:truthy types: - opened - reopened - - labeled - - unlabeled - synchronize branches: - main @@ -20,8 +18,6 @@ on: # yamllint disable-line rule:truthy - '*' jobs: - changelog: - uses: ./.github/workflows/changelog.yml # use the callable changelog job to run tests linters: uses: ./.github/workflows/linters.yml # use the callable linters job to run tests sanity: @@ -31,7 +27,6 @@ jobs: all_green: if: ${{ always() }} needs: - - changelog - linters - sanity - units @@ -39,7 +34,6 @@ jobs: steps: - run: >- python -c "assert set([ - '${{ needs.changelog.result }}', '${{ needs.linters.result }}', '${{ needs.sanity.result }}', '${{ needs.units.result }}' diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index 5a779b72e15..ec8f643490f 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -1,8 +1,22 @@ --- -name: changelog and linters - -on: [workflow_call] # allow this workflow to be called from other workflows +name: changelog +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true +on: + pull_request: + types: + - opened + - reopened + - labeled + - unlabeled + - synchronize + branches: + - main + - stable-* + tags: + - '*' jobs: changelog: uses: ansible-network/github_actions/.github/workflows/changelog.yml@main