Update Dependencies #643
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Update Dependencies | |
on: | |
schedule: | |
- cron: "30 2 * * 0" | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
update-apt-dependencies: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
flavor: ["cpp", "rust"] | |
# Using our own container is required since we need all package sources | |
# set-up correctly. | |
container: ghcr.io/philips-software/amp-devcontainer-${{ matrix.flavor }}:latest | |
permissions: | |
contents: write | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
persist-credentials: false | |
- uses: ./.github/actions/update-apt-packages | |
id: update-packages | |
with: | |
input-file: .devcontainer/${{ matrix.flavor }}/apt-requirements-*.json | |
- uses: actions/create-github-app-token@c1a285145b9d317df6ced56c09f525b5c2b6f755 # v1.11.1 | |
id: token | |
with: | |
app-id: ${{ vars.FOREST_RELEASER_APP_ID }} | |
private-key: ${{ secrets.FOREST_RELEASER_APP_PRIVATE_KEY }} | |
- uses: peter-evans/create-pull-request@67ccf781d68cd99b580ae25a5c18a1cc84ffff1f # v7.0.6 | |
with: | |
commit-message: "Update ${{ join(fromJson(steps.update-packages.outputs.updated-dependencies), ', ') }}" | |
branch: feature/amp-devcontainer-${{ matrix.flavor }}/update-apt-packages | |
title: "chore(deps, ${{ matrix.flavor }}): update ${{ join(fromJson(steps.update-packages.outputs.updated-dependencies), ', ') }}" | |
labels: dependencies,apt | |
token: ${{ steps.token.outputs.token }} | |
sign-commits: true | |
update-vscode-extensions: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
flavor: ["cpp", "rust"] | |
permissions: | |
contents: write | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
persist-credentials: false | |
- uses: ./.github/actions/update-vscode-extensions | |
id: update-extensions | |
with: | |
input-file: .devcontainer/${{ matrix.flavor }}/devcontainer-metadata-vscode.json | |
- uses: actions/create-github-app-token@c1a285145b9d317df6ced56c09f525b5c2b6f755 # v1.11.1 | |
id: token | |
with: | |
app-id: ${{ vars.FOREST_RELEASER_APP_ID }} | |
private-key: ${{ secrets.FOREST_RELEASER_APP_PRIVATE_KEY }} | |
- uses: peter-evans/create-pull-request@67ccf781d68cd99b580ae25a5c18a1cc84ffff1f # v7.0.6 | |
with: | |
commit-message: "Update ${{ join(fromJson(steps.update-extensions.outputs.updated-dependencies), ', ') }}" | |
branch: feature/amp-devcontainer-${{ matrix.flavor }}/update-vscode-extensions | |
body: | | |
> [!NOTE] | |
> 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. | |
${{ steps.update-extensions.outputs.markdown-summary }} | |
title: "chore(deps, ${{ matrix.flavor }}): update ${{ join(fromJson(steps.update-extensions.outputs.updated-dependencies), ', ') }}" | |
labels: dependencies,vscode-extensions | |
token: ${{ steps.token.outputs.token }} | |
sign-commits: true |