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 9cc496a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,15 @@ 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_FILE=$(echo "${WORKFLOW_REF}" | cut -d'@' -f1)
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 9cc496a

Please sign in to comment.