Browse Source

[ci] rebuild gh actions workflow

Dan Korostelev 4 years ago
parent
commit
ad9885e6c4
1 changed files with 16 additions and 0 deletions
  1. 16 0
      .github/workflows/main.yml

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

@@ -84,6 +84,10 @@ jobs:
         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: |
@@ -172,6 +176,10 @@ jobs:
         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: |
@@ -219,6 +227,10 @@ jobs:
           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
@@ -302,6 +314,10 @@ jobs:
           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