Browse Source

[ci] add ADD_REVISION=1 for non-release builds

Dan Korostelev 4 years ago
parent
commit
be13d36a3f

+ 4 - 0
extra/github-actions/build-linux.yml

@@ -16,6 +16,10 @@
     opam list
     ocamlopt -v
 
+- name: Set ADD_REVISION=1 for non-release
+  if: ${{ !startsWith(github.ref, 'refs/tags/') }}
+  run: echo "ADD_REVISION=1" >> $GITHUB_ENV
+
 - name: Build Haxe
   run: |
     set -ex

+ 4 - 0
extra/github-actions/build-mac.yml

@@ -19,6 +19,10 @@
     opam list
     ocamlopt -v
 
+- name: Set ADD_REVISION=1 for non-release
+  if: ${{ !startsWith(github.ref, 'refs/tags/') }}
+  run: echo "ADD_REVISION=1" >> $GITHUB_ENV
+
 - name: Build Haxe
   run: |
     set -ex

+ 4 - 0
extra/github-actions/build-windows.yml

@@ -35,6 +35,10 @@
   shell: pwsh
   run: Write-Host "::add-path::${env:CYG_ROOT}/usr/$($env:MINGW_ARCH)-w64-mingw32/sys-root/mingw/bin"
 
+- name: Set ADD_REVISION=1 for non-release
+  if: ${{ !startsWith(github.ref, 'refs/tags/') }}
+  run: echo "ADD_REVISION=1" >> $GITHUB_ENV
+
 - name: Build Haxe
   shell: pwsh
   run: |