Просмотр исходного кода

ci: fill the draft release notes from the tag annotation

Check out the repository so gh can read the annotated tag. Ignore
zizmor's self-repository audit until actionlint supports the $/ syntax.
Frédéric Guillot 3 дней назад
Родитель
Сommit
a5ff7e7430
1 измененных файлов с 8 добавлено и 4 удалено
  1. 8 4
      .github/workflows/release.yml

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

@@ -8,13 +8,13 @@ on:
 jobs:
   binaries:
     name: Binaries
-    uses: ./.github/workflows/build_binaries.yml
+    uses: ./.github/workflows/build_binaries.yml # zizmor: ignore[self-repository]
   debian-packages:
     name: Debian Packages
-    uses: ./.github/workflows/debian_packages.yml
+    uses: ./.github/workflows/debian_packages.yml # zizmor: ignore[self-repository]
   rpm-packages:
     name: RPM Packages
-    uses: ./.github/workflows/rpm_packages.yml
+    uses: ./.github/workflows/rpm_packages.yml # zizmor: ignore[self-repository]
   draft-release:
     name: Draft Release
     if: github.repository_owner == 'miniflux'
@@ -23,6 +23,10 @@ jobs:
     permissions:
       contents: write
     steps:
+      - name: Checkout
+        uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+        with:
+          persist-credentials: false
       - name: Download artifacts
         uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
         with:
@@ -39,5 +43,5 @@ jobs:
           if [ "$(gh release view "$TAG" --json isDraft --jq .isDraft 2>/dev/null)" = "true" ]; then
             gh release upload "$TAG" dist/* --clobber
           else
-            gh release create "$TAG" dist/* --draft --verify-tag --title "Miniflux $TAG" --notes ""
+            gh release create "$TAG" dist/* --draft --verify-tag --title "Miniflux $TAG" --notes-from-tag
           fi