File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Pre-Prepare
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ pull-langugageserver :
7+ description : " Are there changes to language server?"
8+ default : false
9+ jobs :
10+ build :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - name : Checkout
14+ uses : actions/checkout@v2
15+ with :
16+ fetch-depth : 0
17+ - name : Setup Node
18+ uses : actions/setup-node@v2
19+ with :
20+ node-version : 16.x
21+ cache : " npm"
22+ registry-url : " https://npm.pkg.github.com"
23+ - name : run npm install
24+ run : npm install @actions/languageserver@latest @actions/workflow-parser@latest --workspaces=false
25+ - name : revert changes to package.json
26+ run : git checkout -- package.json
27+ - name : run npm i
28+ run : npm i
29+ - name : create branch
30+ run : |
31+ git checkout -b env.BRANCH_NAME
32+ git add -A
33+ git commit -m "automation: update language server"
34+ git push origin env.BRANCH_NAME
35+ env :
36+ BRANCH_NAME : " update-language-server-${{ github.run_id }}-${{ github.run_attempt}}"
37+ - name : create pull request
38+ uses : peter-evans/create-pull-request@v5
39+
You can’t perform that action at this time.
0 commit comments