Skip to content

Commit d8630e0

Browse files
committed
chore: include devcontainer.json files in automatic vscode extension update
This PR adds support for updating the extension not only in the target containers' metadata, but also in the container definition that is used to develop the containers.
1 parent 2553d53 commit d8630e0

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/update-dependencies.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ jobs:
4949
strategy:
5050
matrix:
5151
flavor: ["cpp", "rust"]
52+
file: ["devcontainer-metadata-vscode.json", "devcontainer.json"]
5253
permissions:
5354
contents: write
5455
pull-requests: write
@@ -62,22 +63,22 @@ jobs:
6263
- uses: ./.github/actions/update-vscode-extensions
6364
id: update-extensions
6465
with:
65-
input-file: .devcontainer/${{ matrix.flavor }}/devcontainer-metadata-vscode.json
66+
input-file: .devcontainer/${{ matrix.flavor }}/${{ matrix.file }}
6667
- uses: actions/create-github-app-token@a8d616148505b5069dccd32f177bb87d7f39123b # v2.1.1
6768
id: token
6869
with:
6970
app-id: ${{ vars.FOREST_RELEASER_APP_ID }}
7071
private-key: ${{ secrets.FOREST_RELEASER_APP_PRIVATE_KEY }}
7172
- uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
7273
with:
73-
commit-message: "Update ${{ join(fromJson(steps.update-extensions.outputs.updated-dependencies), ', ') }}"
74-
branch: feature/amp-devcontainer-${{ matrix.flavor }}/update-vscode-extensions
74+
commit-message: "Update ${{ join(fromJson(steps.update-extensions.outputs.updated-dependencies), ', ') }} in ${{ matrix.file }}"
75+
branch: feature/amp-devcontainer-${{ matrix.flavor }}/update-vscode-extensions-${{ matrix.file }}
7576
body: |
7677
> [!NOTE]
7778
> Before merging this PR, please conduct a manual test checking basic functionality of the updated plug-ins. There are limited automated tests for the VS Code Extension updates.
7879
7980
${{ steps.update-extensions.outputs.markdown-summary }}
80-
title: "chore(deps, ${{ matrix.flavor }}): update ${{ join(fromJson(steps.update-extensions.outputs.updated-dependencies), ', ') }}"
81+
title: "chore(deps, ${{ matrix.flavor }}): update ${{ join(fromJson(steps.update-extensions.outputs.updated-dependencies), ', ') }} in ${{ matrix.file }}"
8182
labels: dependencies,vscode-extensions
8283
token: ${{ steps.token.outputs.token }}
8384
sign-commits: true

0 commit comments

Comments
 (0)