Skip to content

Commit aeb07a7

Browse files
Remove unnecessary tag user input
1 parent 75ae0f9 commit aeb07a7

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

.github/workflows/deploy.yml

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -17,43 +17,13 @@ name: Deploy
1717

1818
on:
1919
workflow_dispatch:
20-
inputs:
21-
tag-name:
22-
description: 'Tag for deployment (e.g., v0.5.2)'
23-
required: true
2420

2521
jobs:
2622
deploy:
2723
runs-on: ubuntu-latest
2824
steps:
2925
- name: Checkout repository
3026
uses: actions/checkout@v3
31-
with:
32-
fetch-depth: 0 # Fetch all history for all tags and branches
33-
34-
- name: Validate format of received tag
35-
uses: actions/github-script@v7
36-
with:
37-
script: |
38-
const newTag = core.getInput('tag-name');
39-
const regex = /^v[0-9]+\.[0-9]+\.[0-9]+$/;
40-
41-
if (!regex.test(newTag)) {
42-
core.setFailed('Tag does not match the required format "v[0-9]+.[0-9]+.[0-9]+". Valid example: v0.5.2');
43-
return;
44-
}
45-
tag-name: ${{ github.event.inputs.tag-name }}
46-
47-
- name: Define semantic version number
48-
id: semantic_version
49-
run: |
50-
TAG_NAME="${{ github.event.inputs.tag-name }}"
51-
VERSION=${TAG_NAME#v}
52-
echo "VERSION=${VERSION}" >> "${GITHUB_ENV}"
53-
54-
- name: Checkout to tag
55-
run: |
56-
git checkout ${{ github.event.inputs.tag-name }}
5727

5828
- name: Set up JDK 1.8
5929
uses: actions/setup-java@v1

0 commit comments

Comments
 (0)