Forráskód Böngészése

ci: replace defunct endaft/action-changelog with action-gh-release auto-notes

endaft/action-changelog has been removed from GitHub (returns 404 on
the action checkout step), which broke every release workflow run
since rc4. Switches the Release step to use
softprops/action-gh-release@v2's built-in generate_release_notes: true
option, which pulls the autogenerated PR/commit summary from GitHub's
release-notes API. Same outcome, no dependency on a deleted third-party
action.
Aigars Silkalns 1 napja
szülő
commit
7917b42d98
1 módosított fájl, 4 hozzáadás és 8 törlés
  1. 4 8
      .github/workflows/release.yml

+ 4 - 8
.github/workflows/release.yml

@@ -38,17 +38,13 @@ jobs:
         with:
           args: "zip -qq -r admin-lte-${{env.RELEASE_VERSION}}.zip dist"
 
-      - name: Create changelog text
-        id: changelog
-        uses: endaft/action-changelog@v0.0.5
-        with:
-          token: ${{ secrets.GITHUB_TOKEN }}
-          exclude_types: other,doc,chore
-
       - name: Release
         uses: softprops/action-gh-release@v2
         if: startsWith(github.ref, 'refs/tags/')
         with:
-          body: ${{ steps.changelog.outputs.changelog }}
+          # Let GitHub auto-generate the release notes from PRs / commits
+          # since the previous tag. Replaces the discontinued
+          # endaft/action-changelog action.
+          generate_release_notes: true
           files: |
             admin-lte-${{env.RELEASE_VERSION}}.zip