Skip to content

Commit

Permalink
Correct path
Browse files Browse the repository at this point in the history
  • Loading branch information
Rindrics committed Jun 15, 2024
1 parent 1c5caf4 commit e37f24e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,16 @@ runs:
steps:
- name: Get current workflow file
id: get-workflow
run: echo "workflow_file=${{ github.workflow_ref }}" | cut -d'@' -f1 >> $GITHUB_OUTPUT
run: |
WORKFLOW_REF="${{ github.workflow_ref }}"
WORKFLOW_PATH=$(echo "${WORKFLOW_REF}" | cut -d'@' -f1)
WORKFLOW_FILE=".github/workflows/${WORKFLOW_PATH##*/}"
echo "workflow_file=${WORKFLOW_FILE}" >> $GITHUB_OUTPUT
shell: bash

- name: Check parameters
run: ./scripts/validate-param.sh
shell: bash
env:
PARAMS: ${{ inputs.params }}
WORKFLOW_FILE: ${{ github.workspace }}/${{ steps.get-workflow.outputs.workflow_file }}.yml
WORKFLOW_FILE: ${{ github.workspace }}/${{ steps.get-workflow.outputs.workflow_file }}

0 comments on commit e37f24e

Please sign in to comment.