Skip to content

Commit c68e9b2

Browse files
stephentoubCopilot
andcommitted
Include Java in copilot dependency codegen
Run Java codegen as part of the @github/copilot dependency update workflow. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 5995295 commit c68e9b2

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

.github/workflows/update-copilot-dependency.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ jobs:
6868
working-directory: ./test/harness
6969
run: npm install "@github/copilot@$VERSION"
7070

71+
- name: Update @github/copilot in Java codegen
72+
env:
73+
VERSION: ${{ inputs.version }}
74+
working-directory: ./java/scripts/codegen
75+
run: npm install "@github/copilot@$VERSION"
76+
7177
- name: Refresh nodejs/samples lockfile
7278
working-directory: ./nodejs/samples
7379
run: npm install
@@ -80,6 +86,10 @@ jobs:
8086
working-directory: ./scripts/codegen
8187
run: npm run generate
8288

89+
- name: Run Java codegen
90+
working-directory: ./java/scripts/codegen
91+
run: npm run generate
92+
8393
- name: Format generated code
8494
run: |
8595
cd nodejs && npx prettier --write "src/generated/**/*.ts"
@@ -112,8 +122,8 @@ jobs:
112122
113123
git commit -m "Update @github/copilot to $VERSION
114124
115-
- Updated nodejs and test harness dependencies
116-
- Re-ran code generators
125+
- Updated @github/copilot dependencies
126+
- Re-ran all code generators
117127
- Formatted generated code"
118128
git push origin "$BRANCH" --force-with-lease
119129
@@ -132,8 +142,8 @@ jobs:
132142
--body "Automated update of \`@github/copilot\` to version \`$VERSION\`.
133143
134144
### Changes
135-
- Updated \`@github/copilot\` in \`nodejs/package.json\` and \`test/harness/package.json\`
136-
- Re-ran all code generators (\`scripts/codegen\`)
145+
- Updated \`@github/copilot\` dependencies
146+
- Re-ran all code generators
137147
- Formatted generated output
138148
139149
### Next steps

0 commit comments

Comments
 (0)