File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 1717 - uses : actions/checkout@v3
1818 with :
1919 fetch-depth : 0 # Required to count the commits
20- - name : Get Version
20+ - name : Get scm Version
21+ if : github.event_name == 'push'
22+ run : echo "LUAROCKS_VERSION=scm" >> $GITHUB_ENV
23+ - name : Get tag Version
24+ if : github.event_name != 'push'
2125 run : echo "LUAROCKS_VERSION=$(git describe --abbrev=0 --tags)" >> $GITHUB_ENV
26+ - name : Get Revision
27+ if : github.event_name == 'push'
28+ run : echo "LUAROCKS_SPECREV=$(git log --oneline | wc -l)" >> $GITHUB_ENV
2229
2330 # Needed to install the tree-sitter parser dependency
2431 - name : Install C/C++ Compiler
3643 LUAROCKS_API_KEY : ${{ secrets.LUAROCKS_API_KEY }}
3744 with :
3845 version : ${{ env.LUAROCKS_VERSION }}
46+ specrev : ${{ env.LUAROCKS_SPECREV }}
3947 dependencies : |
4048 neotest
4149 tree-sitter-c_sharp
You can’t perform that action at this time.
0 commit comments