From 1c5caf47211fdbbb468061faf0aebccbc61274d4 Mon Sep 17 00:00:00 2001 From: Akira Hayashi Date: Sat, 15 Jun 2024 09:57:07 +0900 Subject: [PATCH] workflow ref --- action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 7668873..8da23fa 100644 --- a/action.yml +++ b/action.yml @@ -10,7 +10,7 @@ runs: steps: - name: Get current workflow file id: get-workflow - run: echo "workflow_file=${{ github.workflow }}" >> $GITHUB_OUTPUT + run: echo "workflow_file=${{ github.workflow_ref }}" | cut -d'@' -f1 >> $GITHUB_OUTPUT shell: bash - name: Check parameters @@ -18,4 +18,4 @@ runs: shell: bash env: PARAMS: ${{ inputs.params }} - WORKFLOW_FILE: ${{ github.workspace }}/.github/workflows/${{ steps.get-workflow.outputs.workflow_file }}.yml + WORKFLOW_FILE: ${{ github.workspace }}/${{ steps.get-workflow.outputs.workflow_file }}.yml