Skip to content

Commit cac8cc1

Browse files
author
asyncapi-bot
committed
ci: update of files from global .github repo
1 parent 58dd03d commit cac8cc1

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/if-nodejs-version-bump.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,23 @@ jobs:
4646
# There is no need to substract "v" from the tag as version script handles it
4747
# When adding "bump:version" script in package.json, make sure no tags are added by default (--no-git-tag-version) as they are already added by release workflow
4848
# When adding "bump:version" script in package.json, make sure --allow-same-version is set in case someone forgot and updated package.json manually and we want to avoide this action to fail and raise confusion
49-
run: VERSION=${{github.event.release.tag_name}} npm run bump:version
49+
env:
50+
VERSION: ${{github.event.release.tag_name}}
51+
run: npm run bump:version
5052
- if: steps.packagejson.outputs.exists == 'true'
5153
name: Create Pull Request with updated asset files including package.json
5254
uses: peter-evans/create-pull-request@38e0b6e68b4c852a5500a94740f0e535e0d7ba54 # use 4.2.4 https://github.com/peter-evans/create-pull-request/releases/tag/v4.2.4
55+
env:
56+
RELEASE_TAG: ${{github.event.release.tag_name}}
57+
RELEASE_URL: ${{github.event.release.html_url}}
5358
with:
5459
token: ${{ secrets.GH_TOKEN }}
55-
commit-message: 'chore(release): ${{github.event.release.tag_name}}'
60+
commit-message: 'chore(release): ${{ env.RELEASE_TAG }}'
5661
committer: asyncapi-bot <info@asyncapi.io>
5762
author: asyncapi-bot <info@asyncapi.io>
58-
title: 'chore(release): ${{github.event.release.tag_name}}'
59-
body: 'Version bump in package.json for release [${{github.event.release.tag_name}}](${{github.event.release.html_url}})'
60-
branch: version-bump/${{github.event.release.tag_name}}
63+
title: 'chore(release): ${{ env.RELEASE_TAG }}'
64+
body: 'Version bump in package.json for release [${{ env.RELEASE_TAG }}](${{ env.RELEASE_URL }})'
65+
branch: version-bump/${{ env.RELEASE_TAG }}
6166
- if: failure() # Only, on failure, send a message on the 94_bot-failing-ci slack channel
6267
name: Report workflow run status to Slack
6368
uses: 8398a7/action-slack@28ba43ae48961b90635b50953d216767a6bea486 #using https://github.com/8398a7/action-slack/releases/tag/v3.16.2

0 commit comments

Comments
 (0)