From d1a1b4ec7c199fd1486f40c796c52bb9e720c9ab Mon Sep 17 00:00:00 2001 From: Antoine Guyon Date: Mon, 27 Mar 2023 20:31:29 +0200 Subject: [PATCH] Update check_glpi_version.yml --- .github/workflows/check_glpi_version.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check_glpi_version.yml b/.github/workflows/check_glpi_version.yml index dda17b7..bdaf44b 100644 --- a/.github/workflows/check_glpi_version.yml +++ b/.github/workflows/check_glpi_version.yml @@ -4,7 +4,7 @@ on: schedule: - cron: '0 * * * *' workflow_dispatch: - + jobs: check_version: runs-on: ubuntu-latest @@ -23,6 +23,13 @@ jobs: python -m pip install --upgrade pip pip install requests beautifulsoup4 + - name: Download last GLPI version artifact + uses: actions/download-artifact@v2 + with: + name: last_glpi_version + path: ./last_glpi_version + continue-on-error: true + - name: Check GLPI version run: python check_glpi_version.py @@ -36,3 +43,10 @@ jobs: run: | echo "Build process starts for new GLPI version ${{ env.NEW_GLPI_VERSION }}" # Ajoutez ici les étapes pour lancer le build avec la nouvelle version + + - name: Upload new last GLPI version artifact + if: ${{ success() }} + uses: actions/upload-artifact@v2 + with: + name: last_glpi_version + path: ./last_glpi_version/last_glpi_version.txt