Skip to content

Commit 9ac05de

Browse files
committed
ci: create pull request for created code
1 parent da8cce9 commit 9ac05de

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/main.yml

+7-4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ jobs:
1010

1111
if: contains(github.event.issue.labels.*.name, 'autocoder-bot')
1212

13+
env:
14+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15+
REPOSITORY: ${{ github.repository }}
16+
ISSUE_NUMBER: ${{ github.event.issue.number }}
17+
1318
steps:
1419
- name: Checkout Repository
1520
uses: actions/checkout@v4
@@ -20,11 +25,9 @@ jobs:
2025
- name: Run script.sh
2126
id: generate_code
2227
env:
23-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24-
REPOSITORY: ${{ github.repository }}
25-
ISSUE_NUMBER: ${{ github.event.issue.number }}
2628
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
27-
run: ./scripts/script.sh $GITHUB_TOKEN $REPOSITORY $ISSUE_NUMBER $OPENAI_API_KEY
29+
run: date +%s > testing.txt
30+
# run: ./scripts/script.sh $GITHUB_TOKEN $REPOSITORY $ISSUE_NUMBER $OPENAI_API_KEY
2831

2932
- name: Create Pull Request
3033
id: cpr

0 commit comments

Comments
 (0)