Skip to content

Commit 09712d1

Browse files
committed
fix
1 parent ec74e77 commit 09712d1

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

.github/workflows/gpt_pullrequest_updater.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,11 @@ jobs:
2525
- name: Build description and review commands
2626
run: |
2727
cd gpt-pullrequest-updater
28-
go build -o description ./cmd/description
29-
go build -o review ./cmd/review
28+
make build
3029
3130
- name: Update Pull Request Description
3231
run: |
33-
./gpt-pullrequest-updater/description
32+
./gpt-pullrequest-updater/bin/description
3433
env:
3534
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3635
OPENAI_TOKEN: ${{ secrets.OPENAI_TOKEN }}
@@ -41,7 +40,7 @@ jobs:
4140
- name: Review Pull Request
4241
if: github.event.action == 'opened'
4342
run: |
44-
./gpt-pullrequest-updater/review
43+
./gpt-pullrequest-updater/bin/review
4544
env:
4645
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4746
OPENAI_TOKEN: ${{ secrets.OPENAI_TOKEN }}

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
.PHONY: init-tools lint test test-coverage precommit help
22

3+
build:
4+
go build -o bin/description ./cmd/description && \
5+
go build -o bin/review ./cmd/review
6+
37
# run this once to install tools required for development.
48
init-tools:
59
cd tools && \

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,11 @@ jobs:
101101
- name: Build description and review commands
102102
run: |
103103
cd gpt-pullrequest-updater
104-
go build -o description ./cmd/description
105-
go build -o review ./cmd/review
104+
make build
106105
107106
- name: Update Pull Request Description
108107
run: |
109-
./gpt-pullrequest-updater/description
108+
./gpt-pullrequest-updater/bin/description
110109
env:
111110
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
112111
OPENAI_TOKEN: ${{ secrets.OPENAI_TOKEN }}
@@ -117,7 +116,7 @@ jobs:
117116
- name: Review Pull Request
118117
if: github.event.action == 'opened'
119118
run: |
120-
./gpt-pullrequest-updater/review
119+
./gpt-pullrequest-updater/bin/review
121120
env:
122121
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
123122
OPENAI_TOKEN: ${{ secrets.OPENAI_TOKEN }}

0 commit comments

Comments
 (0)