diff --git a/close-issue/action.yml b/close-issue/action.yml index c30905c..babc1e5 100644 --- a/close-issue/action.yml +++ b/close-issue/action.yml @@ -26,6 +26,8 @@ runs: INPUT_STATE_REASON: ${{ inputs.state-reason }} INPUT_GITHUB_TOKEN: ${{ inputs.github-token }} run: | + ORIGINAL_DIR=$(pwd) cd ${{ github.action_path }} go build -o close-issue main.go - ./close-issue \ No newline at end of file + cd "$ORIGINAL_DIR" + ${{ github.action_path }}/close-issue \ No newline at end of file diff --git a/comment-issue/action.yml b/comment-issue/action.yml index 03464c0..6c23a05 100644 --- a/comment-issue/action.yml +++ b/comment-issue/action.yml @@ -23,6 +23,8 @@ runs: INPUT_COMMENT_BODY: ${{ inputs.comment-body }} INPUT_GITHUB_TOKEN: ${{ inputs.github-token }} run: | + ORIGINAL_DIR=$(pwd) cd ${{ github.action_path }} go build -o comment-issue main.go - ./comment-issue \ No newline at end of file + cd "$ORIGINAL_DIR" + ${{ github.action_path }}/comment-issue \ No newline at end of file diff --git a/create-issue/action.yml b/create-issue/action.yml index 2afa7ce..41f5886 100644 --- a/create-issue/action.yml +++ b/create-issue/action.yml @@ -33,6 +33,8 @@ runs: INPUT_ISSUE_BODY: ${{ inputs.issue-body }} INPUT_ADDITIONAL_LABELS: ${{ inputs.additional-labels }} run: | + ORIGINAL_DIR=$(pwd) cd ${{ github.action_path }} go build -o create-issue main.go - ./create-issue \ No newline at end of file + cd "$ORIGINAL_DIR" + ${{ github.action_path }}/create-issue \ No newline at end of file diff --git a/find-issue/action.yml b/find-issue/action.yml index 2086f12..f7daf26 100644 --- a/find-issue/action.yml +++ b/find-issue/action.yml @@ -24,6 +24,8 @@ runs: INPUT_ISSUE_TITLE: ${{ inputs.issue-title }} INPUT_GITHUB_TOKEN: ${{ inputs.github-token }} run: | + ORIGINAL_DIR=$(pwd) cd ${{ github.action_path }} go build -o find-issue main.go - ./find-issue + cd "$ORIGINAL_DIR" + ${{ github.action_path }}/find-issue diff --git a/get-latest-semver-tag/action.yml b/get-latest-semver-tag/action.yml index 7edc93c..608ca0a 100644 --- a/get-latest-semver-tag/action.yml +++ b/get-latest-semver-tag/action.yml @@ -48,9 +48,11 @@ runs: INPUT_PREFIX: ${{ inputs.prefix }} INPUT_DEFAULT_VERSION: ${{ inputs.default-version }} run: | + ORIGINAL_DIR=$(pwd) cd ${{ github.action_path }} go build -o get-latest-semver-tag main.go - ./get-latest-semver-tag + cd "$ORIGINAL_DIR" + ${{ github.action_path }}/get-latest-semver-tag branding: icon: 'tag' diff --git a/get-next-semver/action.yml b/get-next-semver/action.yml index 095fcf0..e0813ab 100644 --- a/get-next-semver/action.yml +++ b/get-next-semver/action.yml @@ -53,9 +53,11 @@ runs: INPUT_INCREMENT_MINOR: ${{ inputs.increment-minor }} INPUT_PREFIX: ${{ inputs.prefix }} run: | + ORIGINAL_DIR=$(pwd) cd ${{ github.action_path }} go build -o get-next-semver main.go - ./get-next-semver + cd "$ORIGINAL_DIR" + ${{ github.action_path }}/get-next-semver branding: icon: 'arrow-up' diff --git a/tag-and-create-semver-release/action.yml b/tag-and-create-semver-release/action.yml index 2d5e134..bb20d7c 100644 --- a/tag-and-create-semver-release/action.yml +++ b/tag-and-create-semver-release/action.yml @@ -66,9 +66,11 @@ runs: INPUT_GITHUB_TOKEN: ${{ inputs.github-token }} GITHUB_TOKEN: ${{ inputs.github-token }} run: | + ORIGINAL_DIR=$(pwd) cd ${{ github.action_path }} go build -o tag-and-create-semver-release main.go - ./tag-and-create-semver-release + cd "$ORIGINAL_DIR" + ${{ github.action_path }}/tag-and-create-semver-release branding: icon: 'tag'