Fix Actions script

This commit is contained in:
Tindy X
2020-07-02 23:04:28 +08:00
parent 6e8587d36b
commit ff9820b0a3

View File

@@ -38,7 +38,7 @@ jobs:
id: version
with:
script: |
return context.payload.ref.replace(/\/refs\/tags\//v, '')
return context.payload.ref.replace(/\/?refs\/tags\/v/, '')
result-encoding: string
- name: Docker buildx image and push on release