Skip to content

Commit

Permalink
Added back job for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasKunz committed Nov 20, 2024
1 parent 14ca727 commit 4e7d635
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/test-changelog-generation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---

name: test-changelog-generation.yml

on:
workflow_dispatch: {}


jobs:

generate-release-notes:
runs-on: ubuntu-latest
name: Generate the changelog for this release
outputs:
notes: ${{ steps.print_release_notes.outputs.notes }}
steps:
- name: Setup Gradle
uses: ./.github/workflows/gradle-goal
with:
command: ""
- name: Print Release Notes
id: print_release_notes
run: |
echo 'notes<<RELNOTESEOF' >> $GITHUB_OUTPUT
cat CHANGELOG.next-release.md >> $GITHUB_OUTPUT
printf '\nThis release is based on the following upstream versions:\n\n' >> $GITHUB_OUTPUT
./gradlew -q printUpstreamDependenciesMarkdown >> $GITHUB_OUTPUT
echo 'RELNOTESEOF' >> $GITHUB_OUTPUT
generate-release:
runs-on: ubuntu-latest
needs:
- generate-release-notes
steps:
- name: Create GitHub Release
env:
GH_TOKEN: ${{ github.token }}
run: |
gh release create v1.25 \
--title="Dummy Release" \
--notes='${{needs.generate-release-notes.outputs.notes}}'

0 comments on commit 4e7d635

Please sign in to comment.