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 : VSCode Extensions CI
2+
3+ on :
4+ workflow_dispatch :
5+
6+ jobs :
7+ generate-changelog :
8+ strategy :
9+ matrix :
10+ package :
11+ [
12+ packages/databricks-vscode,
13+ packages/databricks-sdk,
14+ packages/databricks-vscode-types,
15+ " ." ,
16+ ]
17+ node-version : [16.x]
18+ steps :
19+ - uses : actions/checkout@v3
20+ with :
21+ fetch-depth : 0
22+
23+ - name : Use Node.js ${{ matrix.node-version }}
24+ uses : actions/setup-node@v3
25+ with :
26+ node-version : ${{ matrix.node-version }}
27+ cache : " yarn"
28+
29+ - run : yarn install --immutable
30+
31+ - name : Changelog for ${{ matrix.package }}
32+ run : |
33+ TAG=`git describe --abbrev=0 --match "release-v"`
34+
35+ echo "## ${{ matrix.package }}" >> $GITHUB_STEP_SUMMARY
36+ if [ $? -ne 0 ]; then
37+ echo "No release tag matching pattern 'release-v*' found. Generating changelog from beggining"
38+ yarn conventional-changelog -k ${{ matrix.package }} --commit-path ${{ matrix.package }} >> $GITHUB_STEP_SUMMARY
39+ else
40+ echo "Release tag found. Generating changelog from $TAG"
41+ yarn conventional-changelog --tag-prefix="release-v" -k ${{ matrix.package }} --commit-path ${{ matrix.package }} >> $GITHUB_STEP_SUMMARY
42+ fi
43+
44+
45+ version-check :
46+ name : Version Check
47+ runs-on : " macos-latest"
48+ steps :
49+ - uses : actions/checkout@v3
50+ with :
51+ fetch-depth : 0
52+
53+ - name : Use Node.js ${{ matrix.node-version }}
54+ uses : actions/setup-node@v3
55+ with :
56+ node-version : ${{ matrix.node-version }}
57+ cache : " yarn"
58+
59+ - run : yarn install --immutable
60+ - run : yarn version --check
You can’t perform that action at this time.
0 commit comments