Skip to content

Commit

Permalink
Configurando script para verificar cada validação
Browse files Browse the repository at this point in the history
Signed-off-by: Jhon <[email protected]>
  • Loading branch information
JhonathanLepidus committed Jul 6, 2021
1 parent d08583e commit bd5fbb4
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,14 @@ jobs:
run: |
sudo apt install xmlstarlet
application=$(xmlstarlet sel -t -v 'version/application' version.xml)
echo $application
if [ $application != $PLUGIN_NAME ]; then exit 1; fi
if [ $application != $PLUGIN_NAME ]; then echo "Application errado"; fi
release=$(xmlstarlet sel -t -v 'version/release' version.xml)
tag=${{ github.ref }}
tag=${tag/refs\/tags\/v}
echo $tag
if [[ $release != $tag* ]]; then exit 1; fi
if [[ $release != $tag* ]]; then echo "Tag errada"; fi
date_version=$(xmlstarlet sel -t -v 'version/date' version.xml)
current_date=$(date +'%Y-%m-%d')
echo $date_version
if [ $date_version != $current_date ]; then exit 1; fi
if [ $date_version != $current_date ]; then echo "Data errada"; fi
shell: bash
- name: Create the tar.gz package
run: |
Expand Down

0 comments on commit bd5fbb4

Please sign in to comment.