From 0ca8609bb74c3d416e501f7670be4a38aba6913b Mon Sep 17 00:00:00 2001 From: Andrew Cassidy Date: Tue, 27 Aug 2024 01:42:29 -0700 Subject: [PATCH] Try to guess version from action ref --- action.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/action.yaml b/action.yaml index 7606dc0..2354990 100644 --- a/action.yaml +++ b/action.yaml @@ -46,7 +46,11 @@ runs: - name: Setup Yaclog shell: bash - run: pipx install --python ${{ steps.setup-python.outputs.python-path }} ${{ github.action_path }} + run: | + [[ "$ACTION_REF" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] && export SETUPTOOLS_SCM_PRETEND_VERSION_FOR_YACLOG="$ACTION_REF" + pipx install --python ${{ steps.setup-python.outputs.python-path }} ${{ github.action_path }} + env: + ACTION_REF: ${{ github.action_ref }} - name: Create New Release shell: bash