Skip to content

Commit c3ca3fc

Browse files
committed
Update deployment-pre-prepare.yml
1 parent 8e336a3 commit c3ca3fc

2 files changed

Lines changed: 45 additions & 39 deletions

File tree

.github/workflows/deployment-pre-prepare.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

.github/workflows/pre-prepare.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Pre-Prepare
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
pull-langugageserver:
7+
description: "Are there changes to language server?"
8+
required: true
9+
target-branch:
10+
description: name of the branch that contains the desired changes
11+
required: true
12+
13+
permissions:
14+
contents: write
15+
16+
jobs:
17+
build:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v2
22+
with:
23+
fetch-depth: 0
24+
ref: ${{github.event.inputs.target-branch}}
25+
- name: Setup Node
26+
uses: actions/setup-node@v2
27+
with:
28+
node-version: 16.x
29+
cache: "npm"
30+
registry-url: "https://npm.pkg.github.com"
31+
- name: run npm install
32+
run: npm install @actions/languageserver@latest @actions/workflow-parser@latest --workspaces=false
33+
- name: revert changes to package.json
34+
run: git checkout -- package.json
35+
- name: debugging
36+
run: git diff
37+
- name: run npm i
38+
run: npm i
39+
- name: debugging
40+
run: git diff
41+
- uses: stefanzweifel/git-auto-commit-action@v4
42+
with:
43+
branch: ${{github.event.inputs.target-branch}}
44+
45+

0 commit comments

Comments
 (0)