diff --git a/.github/workflows/generate_changelog.yaml b/.github/workflows/generate_changelog.yaml index 52011e6..3b1556e 100644 --- a/.github/workflows/generate_changelog.yaml +++ b/.github/workflows/generate_changelog.yaml @@ -1,8 +1,11 @@ name: generate_changelog + on: - push: - branches: - - 1.0.x + workflow_run: + workflows: + - "split_monorepo0" + types: + - completed jobs: generate_changelog: @@ -10,10 +13,14 @@ jobs: runs-on: ubuntu-latest steps: - - name: "Checkout" + - + if: "startsWith(github.ref, 'refs/tags/')" + name: "Checkout" uses: "actions/checkout@v2" - - name: "Write Changelog" + - + if: "startsWith(github.ref, 'refs/tags/')" + name: "Write Changelog" uses: heinrichreimer/github-changelog-generator-action@v2.1.1 with: token: ${{ secrets.CHANGELOG_TOKEN }} @@ -31,7 +38,9 @@ jobs: author: true usernamesAsGithubLogins: true - - name: "Commit changes" + - + if: "startsWith(github.ref, 'refs/tags/')" + name: "Commit changes" uses: EndBug/add-and-commit@v7 # You can change this to use a specific version with: # Determines the way the action fills missing author name and email. Three options are available: diff --git a/.github/workflows/split_monorepo.yaml b/.github/workflows/split_monorepo.yaml index b707c63..b47896a 100644 --- a/.github/workflows/split_monorepo.yaml +++ b/.github/workflows/split_monorepo.yaml @@ -1,11 +1,9 @@ -name: Split Monorepo Dev-Master +name: split_monorepo on: - workflow_run: - workflows: - - "generate_split_changelog" - types: - - completed + push: + branches: + - 1.0.x jobs: provide_packages_json: