Skip to content

Commit ae16381

Browse files
committed
oopsie doodle
1 parent 1edfd1c commit ae16381

1 file changed

Lines changed: 18 additions & 2 deletions

File tree

.github/workflows/pre-prepare.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Pull langauge server changes
1+
name: Pull language server changes
22

33
on:
44
workflow_dispatch:
@@ -10,6 +10,15 @@ on:
1010
workflows: ["Create release PR"]
1111
types:
1212
- completed
13+
inputs:
14+
target-branch:
15+
required: true
16+
type: string
17+
description: name of the branch that contains the desired changes
18+
run:
19+
required: true
20+
type: boolean
21+
description: whether or not to run the workflow
1322

1423
permissions:
1524
contents: write
@@ -23,24 +32,31 @@ jobs:
2332
with:
2433
fetch-depth: 0
2534
ref: ${{github.event.inputs.target-branch}}
35+
if: ${{ github.event.inputs.run == 'true' }}}
2636
- name: Setup Node
2737
uses: actions/setup-node@v2
2838
with:
2939
node-version: 16.x
3040
cache: "npm"
3141
registry-url: "https://npm.pkg.github.com"
42+
if: ${{ github.event.inputs.run == 'true' }}}
3243
- name: run npm install
3344
run: npm install @actions/languageserver@latest @actions/workflow-parser@latest --workspaces=false
45+
if: ${{ github.event.inputs.run == 'true' }}}
3446
- name: revert changes to package.json
3547
run: git checkout -- package.json
48+
if: ${{ github.event.inputs.run == 'true' }}}
3649
- name: debugging
3750
run: git diff
51+
if: ${{ github.event.inputs.run == 'true' }}}
3852
- name: run npm i
3953
run: npm i
54+
if: ${{ github.event.inputs.run == 'true' }}}
4055
- name: debugging
4156
run: git diff
57+
if: ${{ github.event.inputs.run == 'true' }}}
4258
- uses: stefanzweifel/git-auto-commit-action@v4
4359
with:
4460
branch: ${{github.event.inputs.target-branch}}
45-
61+
if: ${{ github.event.inputs.run == 'true' }}}
4662

0 commit comments

Comments
 (0)