Skip to content

Commit

Permalink
Merge pull request #33 from xiamiao1121/feature/read-changelog-9
Browse files Browse the repository at this point in the history
feat: env variable
  • Loading branch information
xiamiao1121 authored Jun 6, 2024
2 parents 411a415 + 997d956 commit c41e29c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ jobs:
file: package.json
path: ./src
- name: Echo Package
run: echo "${{steps.package.outputs }}"
run: echo "${{ env.PACKAGE_VERSION }}"

- name: Read ChangeLog
id: changelog
uses: BinPar/[email protected]
with:
changelog-path: ./CHANGELOG.md
version: 4.5.7
version: ${{ env.PACKAGE_VERSION }}
- name: Echo ChangeLog
run: echo "${{ steps.changelog.outputs.version-changelog }}"
# - uses: release-drafter/release-drafter@v6
Expand All @@ -71,8 +71,8 @@ jobs:
with:
# This pulls from the "Get Changelog Entry" step above, referencing it's ID to get its outputs object.
# See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
tag: 4.5.7
name: 4.5.7
tag: ${{ env.PACKAGE_VERSION }}
name: ${{ env.PACKAGE_VERSION }}
body: ${{ steps.changelog.outputs.version-changelog }}
allowUpdates: true
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit c41e29c

Please sign in to comment.