Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wangl-cc committed Oct 22, 2023
1 parent 95b544b commit 42aea8c
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,29 @@ jobs:
echo "Version: $CARGO_VERSION"
echo "version=$CARGO_VERSION" >> $GITHUB_OUTPUT
release-note:
name: Generate Release Notes
runs-on: ubuntu-latest
needs: [meta]
outputs:
content: ${{ steps.git_cliff.outputs.content }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Generate Release Notes
id: git_cliff
uses: orhun/git-cliff-action@v2
with:
config: cliff.toml
args: -vv ${{ fromJson(needs.meta.outputs.dryrun) && '-u' || '-l' }}
- name: Print Release Notes
run: |
echo "```markdown" >> $GITHUB_STEP_SUMMARY
cat "${{ steps.git_cliff.outputs.changelog }}" >> $GITHUB_STEP_SUMMARY
echo "```" >> $GITHUB_STEP_SUMMARY
build:
name: Build
needs: meta
Expand Down Expand Up @@ -126,29 +149,6 @@ jobs:
retention-days: 1
if-no-files-found: error

release-note:
name: Generate Release Notes
runs-on: ubuntu-latest
needs: [meta]
outputs:
content: ${{ steps.git_cliff.outputs.content }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Generate Release Notes
id: git_cliff
uses: orhun/git-cliff-action@v2
with:
config: cliff.toml
args: -vv ${{ fromJson(needs.meta.outputs.dryrun) && '-u' || '-l' }}
- name: Print Release Notes
run: |
echo "```markdown" >> $GITHUB_STEP_SUMMARY
echo "${{ steps.git_cliff.outputs.content }}" >> $GITHUB_STEP_SUMMARY
echo "```" >> $GITHUB_STEP_SUMMARY
release:
name: Release
runs-on: ubuntu-latest
Expand Down

0 comments on commit 42aea8c

Please sign in to comment.