Skip to content

Commit b835e83

Browse files
working-directoryを指定できるようにする (#1093)
* working-directoryを指定できるようにする * README修正 (#1094) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent aa65367 commit b835e83

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jobs:
4545
| pr-title-prefix | PRのタイトルの接頭語。 | | fix |
4646
| pr-description-prefix | 本文の接頭語。 | | |
4747
| exit-failure | 実行完了時にCIを失敗させるかどうか。 | | true |
48+
| working-directory | 実行対象のディレクトリ | | |
4849
4950
## 対応しているトリガー
5051
* pull_request

action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ inputs:
2121
description: '実行完了時にCIを失敗させるかどうか。'
2222
required: false
2323
default: "true"
24+
working-directory:
25+
description: '実行対象のディレクトリ'
26+
required: false
27+
default: ""
2428
runs:
2529
using: "composite"
2630
steps:
@@ -29,6 +33,7 @@ runs:
2933
id: diff
3034
shell: bash
3135
if: github.event_name != 'pull_request' || github.event.action != 'closed'
36+
working-directory: ${{inputs.working-directory}}
3237
run: ${{ github.action_path }}/scripts/action/show_diff.sh
3338
- name: Set HEAD_REF
3439
shell: bash
@@ -42,6 +47,7 @@ runs:
4247
REPOSITORY: ${{github.repository}}
4348
BRANCH_NAME_PREFIX: ${{inputs.branch-name-prefix}}
4449
if: steps.diff.outputs.result != '' && ((github.event_name == 'pull_request' && github.event.action != 'closed') || github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch')
50+
working-directory: ${{inputs.working-directory}}
4551
run: ${{ github.action_path }}/scripts/action/push.sh
4652
shell: bash
4753
- name: Set org name

0 commit comments

Comments
 (0)