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
This commit is contained in:
a5r0n
2024-10-17 21:52:11 +03:00
parent 1f2b48bb51
commit 191ae1c59c
+3 -2
View File
@@ -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
Next version to publish after this PR is merged: `${{ steps.bump-version.outputs.NEW_VERSION }}`