mirror of
https://github.com/YuzuZensai/Test-IP.git
synced 2026-11-12 09:26:46 +00:00
🔧 chore: drop v prefix from release tags
This commit is contained in:
@@ -3,7 +3,7 @@ name: CI
|
||||
on:
|
||||
push:
|
||||
branches: ["main"]
|
||||
tags: ["v*.*.*"]
|
||||
tags: ["*.*.*"]
|
||||
pull_request:
|
||||
branches: ["main"]
|
||||
|
||||
@@ -45,7 +45,7 @@ jobs:
|
||||
id: meta
|
||||
run: |
|
||||
TAGS="ghcr.io/${{ steps.owner.outputs.owner }}/test-ip:latest"
|
||||
if [[ "${{ github.ref }}" == refs/tags/v* ]]; then
|
||||
if [[ "${{ github.ref }}" =~ ^refs/tags/[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
||||
VERSION="${{ github.ref_name }}"
|
||||
TAGS="ghcr.io/${{ steps.owner.outputs.owner }}/test-ip:${VERSION},ghcr.io/${{ steps.owner.outputs.owner }}/test-ip:latest"
|
||||
fi
|
||||
Reference in New Issue
Block a user