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