Update testing.yml

pull/35/head
Antoine Guyon 3 years ago committed by GitHub
parent 5405480300
commit 6dcca3d0c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -19,7 +19,7 @@ jobs:
# Envoyer une demande PATCH à l'API GitHub pour mettre à jour la variable secrète
echo -n $PROGRAM_VERSION | base64 --wrap=0 > program_version_base64.txt
curl -X PATCH -H "Authorization: Bearer ${{ secrets.PERSONAL_ACCESS_TOKEN }}" -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/<OWNER>/<REPO>/actions/secrets/PROGRAM_VERSION -d '{"encrypted_value":"'"$(cat program_version_base64.txt)"'"}'
curl -X PATCH -H "Authorization: Bearer ${{ secrets.PERSONAL_ACCESS_TOKEN }}" -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/aguyonp/docker-glpi-automated/actions/secrets/PROGRAM_VERSION -d '{"encrypted_value":"'"$(cat program_version_base64.txt)"'"}'
else
echo "Le programme est à jour."
exit 1 # Arrête la pipeline avec un code d'erreur

Loading…
Cancel
Save