Browse Source

Restore revision hash for non-release Linux builds (#10951)

tobil4sk 2 years ago
parent
commit
a98568178f
2 changed files with 8 additions and 0 deletions
  1. 4 0
      .github/workflows/main.yml
  2. 4 0
      extra/github-actions/workflows/main.yml

+ 4 - 0
.github/workflows/main.yml

@@ -294,6 +294,10 @@ jobs:
           opam list
           opam list
           ocamlopt -v
           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
       - name: Build Haxe
         run: |
         run: |
           set -ex
           set -ex

+ 4 - 0
extra/github-actions/workflows/main.yml

@@ -107,6 +107,10 @@ jobs:
           opam list
           opam list
           ocamlopt -v
           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
       - name: Build Haxe
         run: |
         run: |
           set -ex
           set -ex