Skip to content

Commit 50a4fef

Browse files
committed
CI: Replace tag-script with action
[why] To reduce the maintenance burden. Signed-off-by: Fini Jastrow <[email protected]>
1 parent f843ba4 commit 50a4fef

File tree

1 file changed

+3
-20
lines changed

1 file changed

+3
-20
lines changed

.github/workflows/ci.yaml

+3-20
Original file line numberDiff line numberDiff line change
@@ -188,27 +188,10 @@ jobs:
188188
# Release part
189189
- name: Create tag
190190
if: ${{ github.event_name != 'pull_request' && !startsWith(github.ref, 'refs/tags/') && needs.check-for-new-cascadia.outputs.tag_exists != 'true' }}
191-
uses: actions/github-script@v7
191+
uses: EndBug/latest-tag@latest
192192
with:
193-
github-token: ${{ github.token }}
194-
script: |
195-
const tagName = "${{ needs.check-for-new-cascadia.outputs.tag_name }}";
196-
197-
const createdTag = await github.git.createTag({
198-
owner: context.repo.owner,
199-
repo: context.repo.repo,
200-
tag: tagName,
201-
message: `Bump Delugia version to ${tagName}`,
202-
object: context.sha,
203-
type: "commit"
204-
})
205-
206-
github.git.createRef({
207-
owner: context.repo.owner,
208-
repo: context.repo.repo,
209-
ref: `refs/tags/${tagName}`,
210-
sha: createdTag.data.sha
211-
})
193+
ref: ${{ needs.check-for-new-cascadia.outputs.tag_name }}
194+
description: "Bump Delugia version to ${{ needs.check-for-new-cascadia.outputs.tag_name }}"
212195
- name: Get tag name
213196
id: get_tag_name
214197
if: ${{ startsWith(github.ref, 'refs/tags/') }}

0 commit comments

Comments
 (0)