]> Nishi Git Mirror - gwion.git/commitdiff
:wrench: Use github.sha
authorJérémie Astor <astor.jeremie@wanadoo.fr>
Sat, 22 Feb 2020 22:17:48 +0000 (23:17 +0100)
committerJérémie Astor <astor.jeremie@wanadoo.fr>
Sat, 22 Feb 2020 22:17:48 +0000 (23:17 +0100)
.github/workflows/coverage.yml
.github/workflows/linux.yml
.github/workflows/macos.yml
.github/workflows/windows.yml

index c774cdd6005a5e90025d7883a477497e45d7a48e..598ce67b5842186657ce4d172c41efa7aafb1cbc 100644 (file)
@@ -21,7 +21,7 @@ jobs:
       uses: fennecdjay/gwion-action@v1
       with:
         dir: .
-        ref: ${{ github.event.ref }}
+        ref: ${{ github.sha }}
         run: 'true'
       env:
         USE_COVERAGE: 1
@@ -46,7 +46,7 @@ jobs:
         COV_NUM=${COV_TXT: : -1}
         echo $COV_NUM > gwion-coverage-report/coverage_num.txt
         sed -i 's/<html>/<script type="text\/javascript" src="focus.js"><\/script><html>/' index.src_*.html
-        branch=$(basename ${{ github.event.ref }})
+        branch=$(basename ${{ github.sha }})
         cd gwion-coverage-report/
         bash old.sh $branch
         bash summary.sh
@@ -59,7 +59,7 @@ jobs:
         cat diff.md
 
     - name: Make badge
-      if: github.event_name == 'push' && github.event.ref == 'refs/heads/master'
+      if: github.event_name == 'push' && github.sha == 'refs/heads/master'
       run: | 
         cd gwion-coverage-report
         bash badge.sh
@@ -72,7 +72,7 @@ jobs:
     - name: Push Report
       if: github.event_name == 'push'
       run: |
-        branch=$(basename ${{ github.event.ref }})
+        branch=$(basename ${{ github.sha }})
         cp diff.html gwion-coverage-report/html/$branch
         cd gwion-coverage-report
         git config --local user.email "action@github.com"
index b54c6769205e34265d32c0bbad0f9ce0f2d38082..375109477130d97e858b002b1b0dc917126a8557 100644 (file)
@@ -20,7 +20,7 @@ jobs:
     - name: Build Gwion
       uses: fennecdjay/gwion-action@v1
       with:
-        ref: ${{ github.event.ref }}
+        ref: ${{ github.sha }}
         run: true
       env:
         CC: ${{ matrix.cc }}
index 8c009137d1d1395185f04c9f0b39d93c6f6787b2..abcd3b8c32676ef94dc4334c0430278d35d1aba4 100644 (file)
@@ -20,7 +20,7 @@ jobs:
     - name: Build Gwion
       uses: fennecdjay/gwion-action@v1
       with:
-        ref: ${{ github.event.ref }}
+        ref: ${{ github.sha }}
         run: true
       env:
         CC: ${{ matrix.cc }}
index 578efa199d40ef9b90542e1c01d37a552bb089ba..61954c3cc557f920540e55149a2338815f557388 100644 (file)
@@ -19,7 +19,7 @@ jobs:
     - name: Build Gwion
       uses: fennecdjay/gwion-action@v1
       with:
-        ref: ${{ github.event.ref }}
+        ref: ${{ github.sha }}
         run: true
       env:
         CC: gcc