From 3adcf39a1093a5e5a9309725186e861f0dc744ac Mon Sep 17 00:00:00 2001 From: Christian Meesters Date: Fri, 16 May 2025 21:42:43 +0200 Subject: [PATCH 1/6] feat: attempt to gain full release notes posted on mastodon --- .github/workflows/announce-release.yml | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/announce-release.yml b/.github/workflows/announce-release.yml index 3db5f69..f913250 100644 --- a/.github/workflows/announce-release.yml +++ b/.github/workflows/announce-release.yml @@ -15,21 +15,27 @@ jobs: if: "${{ contains(github.event.head_commit.message, 'chore(main): release') }}" runs-on: ubuntu-latest steps: + - name: Extract release notes + id: extract-release-notes + uses: ffurrer2/extract-release-notes@v2 - name: Post to Mastodon - uses: snakemake/mastodon-release-post-action@v1.3.0 + uses: snakemake/mastodon-release-post-action@v1.2.3 with: access-token: ${{ secrets.MASTODONBOT }} pr-title: ${{ github.event.head_commit.message }} message: | Beep, Beep - I am your friendly #Snakemake release announcement bot. - There is a new release of the Snakemake executor for #SLURM on #HPC systems. Its version is {{ version }}! + There is a new release of the Snakemake executor for #SLURM on #HPC systems. Its version now is {{ version }}! - See {{ changelog }} for details. + Give us some time, and you will automatically find the plugin on #Bioconda and #Pypi. - Give us some time and you will automatically find the plugin on #Bioconda and #Pypi. + If you want to discuss the release, you will find the maintainers here on Mastodon! + @rupdecat and @johanneskoester@fosstodon.org - If you want to discuss the release you will find the maintainers here on Mastodon! - @rupdecat and @johanneskoester + If you discover any issues, please report them on {{ issue_url }}. + + See {{ changelog }} for details. Here is the header of the changelog: - If you find any issues, please report them on {{ issue_url }} + ${{ steps.extract-release-notes.outputs.release_notes }} + \ No newline at end of file From dbb6006914394c516ae0ebcf26e36d472315fd25 Mon Sep 17 00:00:00 2001 From: Christian Meesters Date: Sat, 17 May 2025 16:40:10 +0200 Subject: [PATCH 2/6] fix: indicating missing changelog file --- .github/workflows/announce-release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/announce-release.yml b/.github/workflows/announce-release.yml index f913250..f057359 100644 --- a/.github/workflows/announce-release.yml +++ b/.github/workflows/announce-release.yml @@ -18,6 +18,8 @@ jobs: - name: Extract release notes id: extract-release-notes uses: ffurrer2/extract-release-notes@v2 + with: + changelog: ${{ github.workspace }}/CHANGELOG.md - name: Post to Mastodon uses: snakemake/mastodon-release-post-action@v1.2.3 with: From 2cb65da5d45e0d589213a7dfc501099f0bb68ca7 Mon Sep 17 00:00:00 2001 From: Christian Meesters Date: Sat, 17 May 2025 16:41:21 +0200 Subject: [PATCH 3/6] fix: update snakemake dependency --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index ef9970b..e33f031 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,7 +25,7 @@ black = "^23.7.0" flake8 = "^6.1.0" coverage = "^7.3.1" pytest = "^8.3.5" -snakemake = "^9.1.1" +snakemake = "^9.4.0" [tool.coverage.run] omit = [".*", "*/site-packages/*", "Snakefile"] From 981bcaf50ca71173205ec8462040aa67ca76b2e9 Mon Sep 17 00:00:00 2001 From: Christian Meesters Date: Sat, 17 May 2025 17:30:06 +0200 Subject: [PATCH 4/6] fix: typo --- .github/workflows/announce-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/announce-release.yml b/.github/workflows/announce-release.yml index f057359..83eb15b 100644 --- a/.github/workflows/announce-release.yml +++ b/.github/workflows/announce-release.yml @@ -19,7 +19,7 @@ jobs: id: extract-release-notes uses: ffurrer2/extract-release-notes@v2 with: - changelog: ${{ github.workspace }}/CHANGELOG.md + changelog_file: ${{ github.workspace }}/CHANGELOG.md - name: Post to Mastodon uses: snakemake/mastodon-release-post-action@v1.2.3 with: From 0fc283471056fce1e1912e11ec3d48df83c410ef Mon Sep 17 00:00:00 2001 From: Christian Meesters Date: Sat, 17 May 2025 19:17:05 +0200 Subject: [PATCH 5/6] fix: again - wrong path resolution --- .github/workflows/announce-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/announce-release.yml b/.github/workflows/announce-release.yml index 83eb15b..cc7c770 100644 --- a/.github/workflows/announce-release.yml +++ b/.github/workflows/announce-release.yml @@ -19,7 +19,7 @@ jobs: id: extract-release-notes uses: ffurrer2/extract-release-notes@v2 with: - changelog_file: ${{ github.workspace }}/CHANGELOG.md + changelog_file: CHANGELOG.md - name: Post to Mastodon uses: snakemake/mastodon-release-post-action@v1.2.3 with: From 4f214082d724fcd49462c89bf8e86aa36cda0bb9 Mon Sep 17 00:00:00 2001 From: Christian Meesters Date: Sat, 17 May 2025 20:13:26 +0200 Subject: [PATCH 6/6] fix: now trying GITHUB_WORKSPACE --- .github/workflows/announce-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/announce-release.yml b/.github/workflows/announce-release.yml index cc7c770..9414dec 100644 --- a/.github/workflows/announce-release.yml +++ b/.github/workflows/announce-release.yml @@ -19,7 +19,7 @@ jobs: id: extract-release-notes uses: ffurrer2/extract-release-notes@v2 with: - changelog_file: CHANGELOG.md + changelog_file: ${GITHUB_WORKSPACE}/CHANGELOG.md - name: Post to Mastodon uses: snakemake/mastodon-release-post-action@v1.2.3 with: