Skip to content

Commit

Permalink
feat: Add a create-release-note job and remove unnecessary echo state…
Browse files Browse the repository at this point in the history
…ments (#166)
  • Loading branch information
kurosakishigure authored Dec 30, 2024
1 parent 3d19752 commit 77aedff
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,23 @@ jobs:
files: |
katharsis-*-${{ matrix.job.target }}.*
katharsis*.deb
create-release-note:
permissions:
contents: write
needs: publish
runs-on: ubuntu-latest
name: Create release note
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Create release note
run: |
if [[ "${TAG_NAME}" == *canary* ]]; then
gh release create "${TAG_NAME}" -p --generate-notes
else
gh release create "${TAG_NAME}" --generate-notes
fi
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG_NAME: ${{ github.ref_name }}
1 change: 0 additions & 1 deletion .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ jobs:
run: |
labels=$(gh pr view ${{ github.event.pull_request.number }} --json labels --jq '.labels[].name')
if [ -z "$labels" ]; then
echo "No labels were added, closing the pull request."
gh pr close ${{ github.event.pull_request.number }} --comment "Closing PR: No valid prefix found in the title."
fi
env:
Expand Down

0 comments on commit 77aedff

Please sign in to comment.