Skip to content

Commit

Permalink
Revert "Delete action.yml to correct action name"
Browse files Browse the repository at this point in the history
This reverts commit 08e7b09.
  • Loading branch information
Rindrics committed Jun 16, 2024
1 parent cc64e41 commit 967c822
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: 'Expect Self Params'
description: 'Check if specific parameters are set for given steps'

branding:
icon: 'check-circle'
color: 'green'

inputs:
params:
description: 'List of step parameters and values in JSON format'
required: true
type: string
runs:
using: 'composite'
steps:
- name: Get current workflow file
id: get-workflow
shell: bash
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_ENV
- name: Check parameters
shell: bash
run: ./scripts/validate-param.sh
env:
PARAMS: ${{ inputs.params }}
WORKFLOW_FILE: ${{ github.workspace }}/${{ env.workflow_file }}

0 comments on commit 967c822

Please sign in to comment.