From 12233a8d78405cb502238f77cfa6f9ca8fc9fe8a Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Fri, 31 Mar 2023 00:36:06 +0200 Subject: [PATCH] trim refs/tags/ for short tag names --- action.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/action.yml b/action.yml index d06dee9..fb6bdbd 100644 --- a/action.yml +++ b/action.yml @@ -46,6 +46,9 @@ runs: export TAG="${{ inputs.tag }}" if test -z "$TAG"; then export TAG="${{ github.ref_name }}" + # until https://code.forgejo.org/forgejo/runner/issues/9 is fixed + # trim refs/tags/ + TAG=${TAG##refs/tags/} fi export TOKEN="${{ inputs.token }}" if test -z "$TOKEN"; then