mirror of
https://github.com/coder/code-server.git
synced 2026-05-08 13:27:25 +02:00
Add workflow for updating VS Code
For now it is manually triggered.
This commit is contained in:
36
.github/workflows/update.yaml
vendored
Normal file
36
.github/workflows/update.yaml
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
name: Update code-server
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
version:
|
||||
type: string
|
||||
required: true
|
||||
|
||||
jobs:
|
||||
update:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
VERSION: ${{ inputs.version }}
|
||||
GH_TOKEN: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
||||
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
|
||||
with:
|
||||
node-version-file: .node-version
|
||||
|
||||
- run: ./ci/build/update-vscode.sh
|
||||
|
||||
- name: Open PR
|
||||
run: |
|
||||
git config --global user.name cdrci
|
||||
git config --global user.email opensource@coder.com
|
||||
git checkout -b update/${{ env.VERSION }}
|
||||
git add .
|
||||
git commit -m "Update VS Code to ${{ env.VERSION }}"
|
||||
git push -u origin $(git branch --show)
|
||||
gh pr create --repo coder/code-server-aur \
|
||||
--title "Update VS Code to ${{ env.VERSION }}" \
|
||||
--body-file .cache/checklist \
|
||||
--draft
|
||||
Reference in New Issue
Block a user