Skip to content

Commit

Permalink
Merge pull request #1833 from GomathiselviS/changelog_wf
Browse files Browse the repository at this point in the history
Remove changelog from all_green workflow
  • Loading branch information
GomathiselviS authored Oct 25, 2023
2 parents 4b62065 + 93831c3 commit 7ad3a12
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/all_green_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ on: # yamllint disable-line rule:truthy
types:
- opened
- reopened
- labeled
- unlabeled
- synchronize
branches:
- main
Expand All @@ -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:
Expand All @@ -31,15 +27,13 @@ jobs:
all_green:
if: ${{ always() }}
needs:
- changelog
- linters
- sanity
- units
runs-on: ubuntu-latest
steps:
- run: >-
python -c "assert set([
'${{ needs.changelog.result }}',
'${{ needs.linters.result }}',
'${{ needs.sanity.result }}',
'${{ needs.units.result }}'
Expand Down
20 changes: 17 additions & 3 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 7ad3a12

Please sign in to comment.