Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions .github/workflows/update-copilot-dependency.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ jobs:
working-directory: ./test/harness
run: npm install "@github/copilot@$VERSION"

- name: Update @github/copilot in Java codegen
env:
VERSION: ${{ inputs.version }}
working-directory: ./java/scripts/codegen
run: npm install "@github/copilot@$VERSION"

- name: Refresh nodejs/samples lockfile
working-directory: ./nodejs/samples
run: npm install
Expand All @@ -80,6 +86,10 @@ jobs:
working-directory: ./scripts/codegen
run: npm run generate

- name: Run Java codegen
working-directory: ./java/scripts/codegen
run: npm run generate

- name: Format generated code
run: |
cd nodejs && npx prettier --write "src/generated/**/*.ts"
Expand Down Expand Up @@ -112,8 +122,8 @@ jobs:

git commit -m "Update @github/copilot to $VERSION

- Updated nodejs and test harness dependencies
- Re-ran code generators
- Updated @github/copilot dependencies
- Re-ran all code generators
- Formatted generated code"
git push origin "$BRANCH" --force-with-lease

Expand All @@ -132,8 +142,8 @@ jobs:
--body "Automated update of \`@github/copilot\` to version \`$VERSION\`.

### Changes
- Updated \`@github/copilot\` in \`nodejs/package.json\` and \`test/harness/package.json\`
- Re-ran all code generators (\`scripts/codegen\`)
- Updated \`@github/copilot\` dependencies
- Re-ran all code generators
- Formatted generated output

### Next steps
Expand Down
Loading