Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔧 ci: refactor ci (--no-ci) #20

Merged
merged 1 commit into from
Sep 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/ci-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,16 @@ jobs:

- name: Check tag format
run: |
TAG_NAME="${{ env.image_version }}"
export TAG_NAME="${{ env.image_version }}"
if ! [[ "$TAG_NAME" =~ ^v[0-9]+\.[0-9]+(\.[0-9]+)?$ ]]; then
echo "Tag $TAG_NAME does not meet the required format 'vX.Y.Z'."
exit 1
fi

- name: Check a tag from list
run: |
TAG_NAME="${{ env.image_version }}"
TAG_EXISTS=$(git tag --list $TAG_NAME)
export TAG_NAME="${{ env.image_version }}"
export TAG_EXISTS=$(git tag --list $TAG_NAME)
if [ -n "$TAG_EXISTS" ]; then
echo "Tag $TAG_NAME already exists."
exit 1
Expand Down