Skip to content

Commit f766dae

Browse files
authored
Merge pull request #33 from r7kamura/checkout-repo
Fix bug that bump-request is not correctly checked out
2 parents 06a1f96 + a916048 commit f766dae

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

action.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,14 @@ runs:
1717
using: composite
1818
steps:
1919
- uses: actions/checkout@v4
20+
- uses: actions/checkout@v4
21+
with:
22+
repository: r7kamura/bump-request
23+
path: bump-request
2024
- uses: denoland/setup-deno@v1
2125
with:
2226
deno-version: v1.x
23-
- run: deno run --allow-all src/detectNextVersion.ts
27+
- run: deno run --allow-all bump-request/src/detectNextVersion.ts
2428
env:
2529
BUMP_REQUEST_INPUTS_RELEASE_TYPE: ${{ inputs.release_type }}
2630
BUMP_REQUEST_INPUTS_VERSION: ${{ inputs.version }}
@@ -34,11 +38,11 @@ runs:
3438
VERSION: ${{ steps.detect_next_version.outputs.version }}
3539
shell: bash
3640
- if: ${{ !inputs.command }}
37-
run: deno run --allow-all src/changeVersion.ts
41+
run: deno run --allow-all bump-request/src/changeVersion.ts
3842
env:
3943
BUMP_REQUEST_VERSION: ${{ steps.detect_next_version.outputs.version }}
4044
shell: bash
41-
- run: deno run --allow-all src/createPullRequest.ts
45+
- run: deno run --allow-all bump-request/src/createPullRequest.ts
4246
env:
4347
BUMP_REQUEST_VERSION: ${{ steps.detect_next_version.outputs.version }}
4448
GITHUB_TOKEN: ${{ inputs.github_token || github.token }}

src/git.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export async function createAndPushCommit({
1717
await exec.exec("git", ["config", "user.email", userEmail]);
1818
await exec.exec("git", ["switch", "--create", branch]);
1919
await exec.exec("git", ["add", ...files]);
20+
await exec.exec("git", ["reset", "bump-request"]);
2021
await exec.exec("git", ["commit", "--message", message]);
2122
await exec.exec("git", ["push", "--set-upstream", "origin", branch]);
2223
}

0 commit comments

Comments
 (0)