Skip to content
Merged
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
36 changes: 24 additions & 12 deletions .github/workflows/pre-prepare.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
name: Pre-Prepare
name: Pull language server changes

on:
workflow_dispatch:
inputs:
pull-langugageserver:
description: "Are there changes to language server?"
required: true
target-branch:
description: name of the branch that contains the desired changes
required: true
workflow_run:
workflows: ["Create release PR"]
types:
- completed
inputs:
target-branch:
required: true
type: string
description: name of the branch that contains the desired changes
run:
required: true
type: boolean
description: whether or not to run the workflow

permissions:
contents: write
Expand All @@ -21,25 +26,32 @@ jobs:
uses: actions/checkout@v2
with:
fetch-depth: 0
ref: ${{github.event.inputs.target-branch}}
ref: ${{inputs.target-branch}}
if: ${{inputs.run == 'true' }}}
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: 16.x
cache: "npm"
registry-url: "https://npm.pkg.github.com"
if: ${{inputs.run == 'true' }}}
- name: run npm install
run: npm install @actions/languageserver@latest @actions/workflow-parser@latest --workspaces=false
if: ${{inputs.run == 'true' }}}
- name: revert changes to package.json
run: git checkout -- package.json
if: ${{inputs.run == 'true' }}}
- name: debugging
run: git diff
if: ${{inputs.run == 'true' }}}
- name: run npm i
run: npm i
if: ${{inputs.run == 'true' }}}
- name: debugging
run: git diff
if: ${{inputs.run == 'true' }}}
- uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: ${{github.event.inputs.target-branch}}
branch: ${{inputs.target-branch}}
if: ${{inputs.run == 'true' }}}

8 changes: 8 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ on:
version:
required: true
description: "Version to bump `package.json` to (format: x.y.z)"
update-language-server:
required: false
description: "Update the language server to the latest version?"
type: boolean


jobs:
create-release-pr:
Expand Down Expand Up @@ -48,3 +53,6 @@ jobs:
--head release/${{ inputs.version }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
outputs:
target-branch: release/${{ github.event.inputs.version }}
run: ${{ github.event.inputs.update-language-server}}