From 191ae1c59c5283a876f00cc1820ad16fa7d3f20c Mon Sep 17 00:00:00 2001 From: a5r0n <32464596+a5r0n@users.noreply.github.com> Date: Thu, 17 Oct 2024 21:52:11 +0300 Subject: [PATCH] Add output for NEW_VERSION and update PR comment action * Add `::set-output name=NEW_VERSION::$NEW_VERSION` to make NEW_VERSION available as output * Add `comment_tag: next_version` to the PR comment action configuration --- .github/workflows/ci-version-bump.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-version-bump.yml b/.github/workflows/ci-version-bump.yml index 6df5a0e..3eb7fa6 100644 --- a/.github/workflows/ci-version-bump.yml +++ b/.github/workflows/ci-version-bump.yml @@ -39,6 +39,7 @@ jobs: fi echo "New version: $NEW_VERSION" sed -i "s/^version: .*/version: $NEW_VERSION/" n8n/Chart.yaml + echo "::set-output name=NEW_VERSION::$NEW_VERSION" - name: Commit changes if: github.ref == 'refs/heads/main' @@ -64,6 +65,6 @@ jobs: if: github.event_name == 'pull_request' uses: thollander/actions-comment-pull-request@v3 with: + comment_tag: next_version message: | - Next version to publish after this PR is merged: `${{ steps.bump-version.outputs.NEW_VERSION }}` - comment_tag: next_version \ No newline at end of file + Next version to publish after this PR is merged: `${{ steps.bump-version.outputs.NEW_VERSION }}` \ No newline at end of file