Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-publish with new name #9

Merged
merged 1 commit into from
Jun 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }}