From f8f0b498e3d2b08e70b8e82f55447ff84f9c43b2 Mon Sep 17 00:00:00 2001 From: Federico Di Pierro Date: Fri, 9 Feb 2024 10:39:05 +0100 Subject: [PATCH] chore(action): use directly action_ref. Signed-off-by: Federico Di Pierro --- action.yml | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/action.yml b/action.yml index 3b8a824..470a248 100644 --- a/action.yml +++ b/action.yml @@ -26,22 +26,6 @@ outputs: runs: using: "composite" steps: - # If action_ref points to v0 or v0.3, expect to be on a tag, - # else expect that user passed either `main` or an hash. - - name: Fetch tag or hash to be used - shell: bash - working-directory: ${{ github.action_path }} - id: git - run: | - if [[ "$ACTION_REF" =~ ^v[0-9] ]]; then - GIT_VER=$(git tag --points-at HEAD) - else - GIT_VER=$ACTION_REF - fi - echo "git_ver=$GIT_VER" >> $GITHUB_OUTPUT - env: - ACTION_REF: ${{ github.action_ref }} - - name: Generate vars yaml working-directory: ${{ github.action_path }}/ansible-playbooks shell: bash @@ -49,10 +33,12 @@ runs: cat > vars.yml <