Skip to content

Commit a984910

Browse files
authored
fix(ci): fix infinite PR loop by please-release action (#82)
1 parent f1235bc commit a984910

File tree

2 files changed

+33
-35
lines changed

2 files changed

+33
-35
lines changed

.github/workflows/ci.yml

Lines changed: 33 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -95,29 +95,53 @@ jobs:
9595
files: luacov.report.out
9696
env:
9797
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
98-
release:
98+
# release:
99+
# name: Release
100+
# if: ${{ github.ref == 'refs/heads/main' }}
101+
# needs:
102+
# - luacheck
103+
# - unit_test
104+
# runs-on: ubuntu-latest
105+
# permissions:
106+
# contents: write
107+
# pull-requests: write
108+
# repository-projects: write
109+
# steps:
110+
# - uses: google-github-actions/release-please-action@v3
111+
# id: release
112+
# with:
113+
# release-type: simple
114+
# package-name: colorbox.nvim
115+
# - uses: actions/checkout@v4
116+
# - uses: rickstaa/action-create-tag@v1
117+
# if: ${{ steps.release.outputs.release_created }}
118+
# with:
119+
# tag: stable
120+
# message: "Current stable release: ${{ steps.release.outputs.tag_name }}"
121+
# tag_exists_error: false
122+
# force_push_tag: true
123+
update_release_draft:
99124
name: Release
100125
if: ${{ github.ref == 'refs/heads/main' }}
101126
needs:
102127
- luacheck
103128
- unit_test
104-
runs-on: ubuntu-latest
105129
permissions:
106130
contents: write
107131
pull-requests: write
108-
repository-projects: write
132+
runs-on: ubuntu-latest
109133
steps:
110-
- uses: google-github-actions/release-please-action@v3
134+
- uses: release-drafter/release-drafter@v5
111135
id: release
112-
with:
113-
token: ${{ secrets.PERSONAL_RELEASE_TOKEN }}
114-
release-type: simple
115-
package-name: colorbox.nvim
136+
env:
137+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
138+
GITHUB_TOKEN: ${{ secrets.PERSONAL_RELEASE_TOKEN }}
116139
- uses: actions/checkout@v4
117140
- uses: rickstaa/action-create-tag@v1
118-
if: ${{ steps.release.outputs.release_created }}
141+
if: ${{ steps.release.outputs.tag_name }}
119142
with:
120143
tag: stable
121144
message: "Current stable release: ${{ steps.release.outputs.tag_name }}"
122145
tag_exists_error: false
123146
force_push_tag: true
147+
github_token: ${{ secrets.PERSONAL_RELEASE_TOKEN }}

.github/workflows/luarocks.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)