Skip to content

Commit

Permalink
Merge pull request #33 from r7kamura/checkout-repo
Browse files Browse the repository at this point in the history
Fix bug that bump-request is not correctly checked out
  • Loading branch information
r7kamura authored Jun 17, 2024
2 parents 06a1f96 + a916048 commit f766dae
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
10 changes: 7 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,14 @@ runs:
using: composite
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: r7kamura/bump-request
path: bump-request
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- run: deno run --allow-all src/detectNextVersion.ts
- run: deno run --allow-all bump-request/src/detectNextVersion.ts
env:
BUMP_REQUEST_INPUTS_RELEASE_TYPE: ${{ inputs.release_type }}
BUMP_REQUEST_INPUTS_VERSION: ${{ inputs.version }}
Expand All @@ -34,11 +38,11 @@ runs:
VERSION: ${{ steps.detect_next_version.outputs.version }}
shell: bash
- if: ${{ !inputs.command }}
run: deno run --allow-all src/changeVersion.ts
run: deno run --allow-all bump-request/src/changeVersion.ts
env:
BUMP_REQUEST_VERSION: ${{ steps.detect_next_version.outputs.version }}
shell: bash
- run: deno run --allow-all src/createPullRequest.ts
- run: deno run --allow-all bump-request/src/createPullRequest.ts
env:
BUMP_REQUEST_VERSION: ${{ steps.detect_next_version.outputs.version }}
GITHUB_TOKEN: ${{ inputs.github_token || github.token }}
Expand Down
1 change: 1 addition & 0 deletions src/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export async function createAndPushCommit({
await exec.exec("git", ["config", "user.email", userEmail]);
await exec.exec("git", ["switch", "--create", branch]);
await exec.exec("git", ["add", ...files]);
await exec.exec("git", ["reset", "bump-request"]);
await exec.exec("git", ["commit", "--message", message]);
await exec.exec("git", ["push", "--set-upstream", "origin", branch]);
}

0 comments on commit f766dae

Please sign in to comment.