Skip to content

Commit

Permalink
feat: check sha256sum (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrexox authored Apr 14, 2023
1 parent 045a251 commit ca2a9dd
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,25 @@ runs:
shell: bash
run: |
mkdir -p ~/bin/
curl -sL https://github.com/coverallsapp/coverage-reporter/releases/latest/download/coveralls-linux.tar.gz | tar xz -C ~/bin
cd ~/bin/
curl -sLO https://github.com/coverallsapp/coverage-reporter/releases/latest/download/coveralls-linux.tar.gz
curl -sLO https://github.com/coverallsapp/coverage-reporter/releases/latest/download/coveralls-checksums.txt
cat coveralls-checksums.txt | grep coveralls-linux.tar.gz | sha256sum --check
tar -xzf coveralls-linux.tar.gz
rm coveralls-checksums.txt
echo ~/bin >> $GITHUB_PATH
- name: Install coveralls reporter (Windows)
if: startsWith(runner.os, 'Windows')
shell: bash
run: |
mkdir -p ~/bin/
curl -sL https://github.com/coverallsapp/coverage-reporter/releases/latest/download/coveralls-windows.zip | zcat > ~/bin/coveralls.exe
cd ~/bin/
curl -sLO https://github.com/coverallsapp/coverage-reporter/releases/latest/download/coveralls-windows.zip
curl -sLO https://github.com/coverallsapp/coverage-reporter/releases/latest/download/coveralls-checksums.txt
cat coveralls-checksums.txt | grep coveralls-windows.zip | sha256sum --check
zcat coveralls-windows.zip > coveralls.exe
rm coveralls-checksums.txt
echo ~/bin >> $GITHUB_PATH
- name: Done report
Expand Down

0 comments on commit ca2a9dd

Please sign in to comment.