uses: fennecdjay/gwion-action@v1
with:
dir: .
- ref: ${{ github.event.ref }}
+ ref: ${{ github.sha }}
run: 'true'
env:
USE_COVERAGE: 1
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
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
- 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"