2121 matrix :
2222 os : [ubuntu-latest, windows-latest, macOS-latest]
2323 steps :
24- - uses : actions/checkout@master
24+ - uses : actions/checkout@v2
25+ with :
26+ ref : master
2527 - run : git fetch --depth=1 origin +refs/tags/*:refs/tags/*
2628 - name : Set an output
2729 id : set-version
4547 echo $VERSION > ./dist/.version
4648 echo $NAME > ./dist/.name
4749 - name : Use Node.js
48- uses : actions/setup-node@master
50+ uses : actions/setup-node@v1
4951 with :
5052 node-version : 12.x
5153 - run : npm install
6163 if : runner.os == 'Linux'
6264 run : |
6365 ./node_modules/.bin/vsce package -o ./dist/package.vsix
64- - uses : actions/upload-artifact@master
66+ - uses : actions/upload-artifact@v2
6567 if : runner.os == 'Linux'
6668 with :
6769 name : vsix
7173 runs-on : ubuntu-latest
7274 needs : build
7375 steps :
74- - uses : actions/download-artifact@master
76+ - uses : actions/download-artifact@v2
7577 with :
7678 name : vsix
7779 path : ./dist/
8486 echo ::set-output name=name::`cat ./dist/.name`
8587 - name : Create Release
8688 id : create_release
87- uses : actions/create-release@master
89+ uses : actions/create-release@v1
8890 if : runner.os == 'Linux'
8991 env :
9092 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
9799 ${{ steps.set-version.outputs.changelog }}
98100 - name : Upload Release Asset
99101 id : upload-release-asset
100- uses : actions/upload-release-asset@master
102+ uses : actions/upload-release-asset@v1
101103 if : runner.os == 'Linux'
102104 env :
103105 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
@@ -115,12 +117,12 @@ jobs:
115117 with :
116118 ref : master
117119 token : ${{ secrets.TOKEN }}
118- - uses : actions/download-artifact@master
120+ - uses : actions/download-artifact@v2
119121 with :
120122 name : vsix
121123 path : ./dist/
122124 - name : Use Node.js
123- uses : actions/setup-node@master
125+ uses : actions/setup-node@v1
124126 with :
125127 node-version : 12.x
126128 - name : Prepare build
@@ -142,7 +144,7 @@ jobs:
142144 git push
143145 - name : Upload Release Asset
144146 id : upload-release-asset
145- uses : actions/upload-release-asset@master
147+ uses : actions/upload-release-asset@v1
146148 if : runner.os == 'Linux'
147149 env :
148150 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments