From 08e7b092c8e5a0dbfc6e6c475d8ab45da9495db0 Mon Sep 17 00:00:00 2001 From: Akira Hayashi Date: Sun, 16 Jun 2024 11:58:24 +0900 Subject: [PATCH 1/2] Delete `action.yml` to correct action name --- action.yml | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 action.yml diff --git a/action.yml b/action.yml deleted file mode 100644 index a99c61a..0000000 --- a/action.yml +++ /dev/null @@ -1,30 +0,0 @@ -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 }} From cc64e41be828eaf0e39b170a562864760b00b544 Mon Sep 17 00:00:00 2001 From: Akira Hayashi Date: Sun, 16 Jun 2024 11:59:20 +0900 Subject: [PATCH 2/2] Correct names --- .github/workflows/test.yml | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index aaa5117..7740c51 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,7 +9,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - - name: Run expect-self-parameter action + - name: Run expect-self-params action uses: ./ # This points to the local action in the repository with: params: > diff --git a/README.md b/README.md index 3a7562a..ad0014b 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - - name: Run expect-self-parameter action + - name: Run expect-self-params action uses: Rindrics/expect-self-params@v1 with: params: >