Skip to content

Commit

Permalink
fix(ci): fix release-drafter config (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
linrongbin16 authored Dec 8, 2023
1 parent b4ffdb4 commit 77f8d17
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 30 deletions.
4 changes: 4 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
template: |
## What’s Changed
$CHANGES
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,28 @@ jobs:
# message: "Current stable release: ${{ steps.release.outputs.tag_name }}"
# tag_exists_error: false
# force_push_tag: true
update_release_draft:
name: Release
if: ${{ github.ref == 'refs/heads/main' }}
needs:
- luacheck
- unit_test
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v5
id: release
env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.PERSONAL_RELEASE_TOKEN }}
- uses: actions/checkout@v4
- uses: rickstaa/action-create-tag@v1
if: ${{ steps.release.outputs.tag_name }}
with:
tag: stable
message: "Current stable release: ${{ steps.release.outputs.tag_name }}"
tag_exists_error: false
force_push_tag: true
github_token: ${{ secrets.PERSONAL_RELEASE_TOKEN }}
30 changes: 0 additions & 30 deletions .github/workflows/release-drafter.yml

This file was deleted.

0 comments on commit 77f8d17

Please sign in to comment.