Skip to content
Open
Show file tree
Hide file tree
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
24 changes: 17 additions & 7 deletions .github/actions/update-vscode-extensions/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,40 @@ name: Update VS Code Extensions
description: Updates version-pinned VS Code Extensions in JSON files

inputs:
cooldown-days:
default: "7"
description: Minimum number of days a new extension version must be published before it is adopted
required: false
input-file:
description: Input file in JSON format containing a list of version pinned VS Code Extensions under `customizations.vscode.extensions`
description: Input file(s) in JSON format (space or newline separated) containing a list of version pinned VS Code Extensions under `customizations.vscode.extensions`
required: true

outputs:
updated-dependencies:
description: JSON array with the names of the updated dependencies
value: ${{ steps.update-extensions.outputs.updated-dependencies }}
markdown-summary-file:
description: Path to a file containing the markdown summary of update result
value: ${{ steps.update-extensions.outputs.markdown-summary-file }}
updated-dependencies:
description: JSON array with the names of the updated dependencies
value: ${{ steps.update-extensions.outputs.updated-dependencies }}

runs:
using: composite
steps:
- run: |
sudo apt-get update
sudo apt-get install --no-install-recommends -y jq
sudo npm install -g @vscode/vsce
shell: bash
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
with:
node-version: 22.x
- run: npm ci --ignore-scripts --prefix "${GITHUB_ACTION_PATH}"
shell: bash
Comment thread
rjaegers marked this conversation as resolved.
- run: |
"${GITHUB_ACTION_PATH}/update-vscode-extensions.sh" "${INPUT_FILE}"
"${GITHUB_ACTION_PATH}/update-vscode-extensions.sh" ${INPUT_FILE}
id: update-extensions
shell: bash
env:
INPUT_FILE: ${{ inputs.input-file }}
COOLDOWN_DAYS: ${{ inputs.cooldown-days }}
GH_TOKEN: ${{ github.token }}
INPUT_FILE: ${{ inputs.input-file }}
VSCE_BIN: ${{ github.action_path }}/node_modules/.bin/vsce
Loading
Loading