Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8e8e8f7

Browse files
Automaticlly retag for the new release #92 (#93)
* Automaticlly retag for the new release #92 * Fix running failure issue
1 parent 92298bd commit 8e8e8f7

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

‎.github/workflows/release.yml‎

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Release
2+
3+
on:
4+
release:
5+
branches: [main]
6+
types: [published]
7+
workflow_dispatch:
8+
inputs:
9+
tag:
10+
description: 'which tag to update to'
11+
default: 'v2'
12+
required: true
13+
ref:
14+
description: 'which branch to update the tag on'
15+
default: 'main'
16+
required: true
17+
18+
jobs:
19+
re-tag:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v3
23+
with:
24+
fetch-depth: 0
25+
ref: ${{ inputs.ref }}
26+
- name: update tag
27+
run: |
28+
git config user.name 'github-actions'
29+
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
30+
git tag --delete ${{ inputs.tag }} || true
31+
git push --delete origin ${{ inputs.tag }} || true
32+
git tag -a ${{ inputs.tag }} -m 'Retag ${{ inputs.tag }}'
33+
git push origin ${{ inputs.tag }}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /