Skip to content

Commit

Permalink
fix: gh action context for validation script
Browse files Browse the repository at this point in the history
  • Loading branch information
prokopsimek committed Nov 15, 2023
1 parent ffed8e4 commit dff5ae9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gh-action-auto-release",
"version": "1.0.0",
"version": "1.0.1",
"main": "index.js",
"repository": "[email protected]:DXHeroes/gh-action-auto-release.git",
"author": "Prokop Simek <[email protected]>",
Expand Down

0 comments on commit dff5ae9

Please sign in to comment.