checking for zip program
parent
3c83ea03cd
commit
0e47498055
|
@ -28,6 +28,9 @@ jobs:
|
|||
|
||||
- name: "install ghostscript"
|
||||
run: sudo apt-get install -y ghostscript
|
||||
|
||||
- name: "install zip"
|
||||
run: sudo apt-get install -y zip
|
||||
|
||||
###### multiple options for a TeX environment
|
||||
# ##
|
||||
|
|
|
@ -18,6 +18,9 @@ jobs:
|
|||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: "install zip"
|
||||
run: sudo apt-get install -y zip
|
||||
|
||||
## create varibale ${{ steps.tag.outputs.tag }}
|
||||
- name: "get tag"
|
||||
id: tag
|
||||
|
|
|
@ -82,11 +82,28 @@ check_versionhistory() {
|
|||
exit 1
|
||||
}
|
||||
|
||||
# check for zip
|
||||
check_zip() {
|
||||
status=0
|
||||
command -v zip >/dev/null 2>&1 || status=1
|
||||
if [ $status = 0 ]; then
|
||||
if [ $verbose = 1 ]; then
|
||||
echo "zip found"
|
||||
fi
|
||||
return 0
|
||||
fi
|
||||
|
||||
echo "Program 'zip' not found."
|
||||
echo "Be sure to have zip installed!"
|
||||
exit 1
|
||||
}
|
||||
|
||||
## -- creating the release
|
||||
|
||||
## check if $VERSION is present in README.md and versionhistory.tex
|
||||
check_readme
|
||||
check_versionhistory
|
||||
check_zip
|
||||
|
||||
## extract DATE from versionhistory.tex
|
||||
LINE=$(grep "vhEntry{$VERSION_NUM" doc/versionhistory.tex)
|
||||
|
|
Loading…
Reference in New Issue