From e3abbfc633ed413ba3770f1d134f802d1864369d Mon Sep 17 00:00:00 2001 From: miroslavpojer Date: Tue, 19 Nov 2024 12:34:36 +0100 Subject: [PATCH] - Apply release version to newly used GH action. --- .github/workflows/check_pr_release_notes.yml | 2 +- .github/workflows/release_draft.yml | 28 +++++++++++++++++++- 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check_pr_release_notes.yml b/.github/workflows/check_pr_release_notes.yml index 8cb423e1..dd23544f 100644 --- a/.github/workflows/check_pr_release_notes.yml +++ b/.github/workflows/check_pr_release_notes.yml @@ -31,7 +31,7 @@ jobs: python-version: '3.11' - name: Check presence of release notes in PR description - uses: AbsaOSS/release-notes-presence-check@feature/2-Implement-basic-logic-for-Release-notes-located-in-PR-body + uses: AbsaOSS/release-notes-presence-check@v0.1.0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: diff --git a/.github/workflows/release_draft.yml b/.github/workflows/release_draft.yml index 725ecd15..2d10ad38 100644 --- a/.github/workflows/release_draft.yml +++ b/.github/workflows/release_draft.yml @@ -37,7 +37,7 @@ jobs: - name: Check format of received tag id: check-version-tag - uses: AbsaOSS/version-tag-check@feature/3-Implement-check-logic-without-qualifiers-support + uses: AbsaOSS/version-tag-check@v0.1.0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: @@ -45,6 +45,32 @@ jobs: branch: 'master' version-tag: ${{ github.event.inputs.tag-name }} + - name: Generate Release Notes + id: generate_release_notes + uses: AbsaOSS/generate-release-notes@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag-name: ${{ github.event.inputs.tag-name }} + chapters: '[ + {"title": "No entry 🚫", "label": "duplicate"}, + {"title": "No entry 🚫", "label": "invalid"}, + {"title": "No entry 🚫", "label": "wontfix"}, + {"title": "No entry 🚫", "label": "no RN"}, + {"title": "Breaking Changes 💥", "label": "breaking-change"}, + {"title": "New Features 🎉", "label": "enhancement"}, + {"title": "New Features 🎉", "label": "feature"}, + {"title": "Bugfixes 🛠", "label": "bug"}, + {"title": "Infrastructure ⚙️", "label": "infrastructure"}, + {"title": "Silent-live 🤫", "label": "silent-live"}, + {"title": "Documentation 📜", "label": "documentation"} + ]' + skip-release-notes-label: 'no RN' + verbose: true + + warnings: true + print-empty-chapters: true + - name: Create and Push Tag uses: actions/github-script@v7 with: