11name : Pull language server changes
22
33on :
4- workflow_dispatch :
5- inputs :
6- target-branch :
7- description : name of the branch that contains the desired changes
8- required : true
9- run :
10- description : whether or not to run the workflow
11- required : true
12- type : boolean
134 workflow_run :
145 workflows : ["Create release PR"]
156 types :
@@ -35,32 +26,32 @@ jobs:
3526 uses : actions/checkout@v2
3627 with :
3728 fetch-depth : 0
38- ref : ${{github.event. inputs.target-branch}}
39- if : ${{ github.event. inputs.run == 'true' }}}
29+ ref : ${{inputs.target-branch}}
30+ if : ${{inputs.run == 'true' }}}
4031 - name : Setup Node
4132 uses : actions/setup-node@v2
4233 with :
4334 node-version : 16.x
4435 cache : " npm"
4536 registry-url : " https://npm.pkg.github.com"
46- if : ${{ github.event. inputs.run == 'true' }}}
37+ if : ${{inputs.run == 'true' }}}
4738 - name : run npm install
4839 run : npm install @actions/languageserver@latest @actions/workflow-parser@latest --workspaces=false
49- if : ${{ github.event. inputs.run == 'true' }}}
40+ if : ${{inputs.run == 'true' }}}
5041 - name : revert changes to package.json
5142 run : git checkout -- package.json
52- if : ${{ github.event. inputs.run == 'true' }}}
43+ if : ${{inputs.run == 'true' }}}
5344 - name : debugging
5445 run : git diff
55- if : ${{ github.event. inputs.run == 'true' }}}
46+ if : ${{inputs.run == 'true' }}}
5647 - name : run npm i
5748 run : npm i
58- if : ${{ github.event. inputs.run == 'true' }}}
49+ if : ${{inputs.run == 'true' }}}
5950 - name : debugging
6051 run : git diff
61- if : ${{ github.event. inputs.run == 'true' }}}
52+ if : ${{inputs.run == 'true' }}}
6253 - uses : stefanzweifel/git-auto-commit-action@v4
6354 with :
64- branch : ${{github.event. inputs.target-branch}}
65- if : ${{ github.event. inputs.run == 'true' }}}
55+ branch : ${{inputs.target-branch}}
56+ if : ${{inputs.run == 'true' }}}
6657
0 commit comments