From dff5ae9ebaf8705ee97ccff29e8af2330b67ffb5 Mon Sep 17 00:00:00 2001 From: Prokop Simek Date: Wed, 15 Nov 2023 07:56:49 +0100 Subject: [PATCH] fix: gh action context for validation script --- action.yml | 5 +++-- package.json | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/action.yml b/action.yml index 3f6ba52..442735c 100644 --- a/action.yml +++ b/action.yml @@ -141,10 +141,11 @@ runs: using: 'composite' steps: - uses: actions/checkout@v3 - + - run: echo "${{ github.action_path }}" + shell: bash # Validate the action parameters - name: GH Action Validation - run: 'node dist/index.js --package-name ${{ inputs.package-name }} --release-type ${{ inputs.release-type }}' + run: 'node ${{ github.action_path }}/dist/index.js --package-name ${{ inputs.package-name }} --release-type ${{ inputs.release-type }}' shell: bash # Processing the package release with release-please diff --git a/package.json b/package.json index a9b7927..f322c36 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gh-action-auto-release", - "version": "1.0.0", + "version": "1.0.1", "main": "index.js", "repository": "git@github.com:DXHeroes/gh-action-auto-release.git", "author": "Prokop Simek ",