Skip to content

Commit

Permalink
fix: add path as arg to run.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
shanejonas committed Apr 8, 2021
1 parent 6430a86 commit 20c2d29
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ runs:
using: "composite"
steps:
- shell: bash
run: ${{ github.action_path }}/run.sh ${{ inputs.branch-prefix }}
run: ${{ github.action_path }}/run.sh ${{ inputs.branch-prefix }} ${{ github.action_path }}
2 changes: 1 addition & 1 deletion run.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export PREFIX=${1}
export NEW_VERSION="${GITHUB_HEAD_REF#$PREFIX}"
export RELEASE_BODY="$(awk -v version="${NEW_VERSION}" -f scripts/show-changelog.awk CHANGELOG.md)"
export RELEASE_BODY="$(awk -v version="${NEW_VERSION}" -f ${2}/scripts/show-changelog.awk CHANGELOG.md)"

hub release create \
--message "Version ${NEW_VERSION}" \
Expand Down

0 comments on commit 20c2d29

Please sign in to comment.