File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 25
25
echo "MAIN_SHA=$MAIN_SHA" >> $GITHUB_ENV
26
26
echo "NIGHTLY_SHA=$NIGHTLY_SHA" >> $GITHUB_ENV
27
27
28
+ if [ "$MAIN_SHA" = "$NIGHTLY_SHA" ] ; then
29
+ echo "DEPLOY=false" >> $GITHUB_OUTPUT
30
+ echo "No changes to deploy"
31
+ else
32
+ echo "DEPLOY=true" >> $GITHUB_OUTPUT
33
+ echo "Will deploy Nightly build"
34
+ fi
35
+
28
36
- name : Get version
29
37
id : version
30
- if : ' ${{ env.MAIN-SHA }} != ${{ env.NIGHTLY-SHA }} '
38
+ if : ' steps.deploy-nightly.outputs.DEPLOY == "true" '
31
39
run : |
32
40
datetime=$(date +%Y%m%d%H)
33
41
pkg_version=$(node -p "require('./package.json').version")
37
45
echo "VERSION=$version" >> $GITHUB_ENV
38
46
39
47
- name : Publish Nightly Release
40
- if : ' ${{ env.MAIN-SHA }} != ${{ env.NIGHTLY-SHA }} '
48
+ if : ' steps.deploy-nightly.outputs.DEPLOY == "true" '
41
49
run : |
42
50
echo "Publishing nightly release ${{ env.VERSION }}"
43
51
npm ci
47
55
VSCE_PAT : ${{ secrets.VS_MARKETPLACE_TOKEN }}
48
56
49
57
- name : Create Nightly tag
50
- if : ' ${{ env.MAIN-SHA }} != ${{ env.NIGHTLY-SHA }} '
58
+ if : ' steps.deploy-nightly.outputs.DEPLOY == "true" '
51
59
run : |
52
60
# git config user.name github-actions
53
61
# git config user.email 41898282+github-actions[bot]@users.noreply.github.com
You can’t perform that action at this time.
0 commit comments