generated from pmo-actions/healthchecks-ping
Actualiser action.yaml
This commit is contained in:
@@ -45,15 +45,14 @@ runs:
|
||||
- name: Retrieve the version
|
||||
shell: bash
|
||||
run: |
|
||||
# Lire le contenu du fichier et supprimer les espaces/retours chariots
|
||||
SOFTVERSION=$(cat ${{ inputs.version_file }} \
|
||||
# Lire le contenu du fichier et supprimer les espaces/retours chariots
|
||||
SOFTVERSION=$(cat ${{ inputs.version_file }} \
|
||||
| grep -v '^ *$' \
|
||||
| head -n 1 \
|
||||
| tr -d '\n' \
|
||||
| sed -E 's/^[[:space:]]*//;s/[[:space:]]*$//' \
|
||||
| tr ' ' '-')
|
||||
|
||||
echo "::set-output name=version::${SOFTVERSION}"
|
||||
|
||||
echo "version=${SOFTVERSION}" >> $GITHUB_OUTPUT
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user