From 37c55fcdb3ff858f4c86435aa124f35203c0ae74 Mon Sep 17 00:00:00 2001 From: Antoine Guyon Date: Mon, 27 Mar 2023 19:54:13 +0200 Subject: [PATCH] Create check_glpi_version.yml --- .github/workflows/check_glpi_version.yml | 37 ++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/check_glpi_version.yml diff --git a/.github/workflows/check_glpi_version.yml b/.github/workflows/check_glpi_version.yml new file mode 100644 index 0000000..c618040 --- /dev/null +++ b/.github/workflows/check_glpi_version.yml @@ -0,0 +1,37 @@ +name: Check GLPI Version + +on: + schedule: + - cron: '0 * * * *' + +jobs: + check_version: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install requests beautifulsoup4 + + - name: Check GLPI version + run: python check_glpi_version.py + + - name: Store new version + if: ${{ success() }} + run: | + echo "NEW_GLPI_VERSION=$(cat new_glpi_version.txt)" >> $GITHUB_ENV + + - name: Run build for new version + if: ${{ success() }} + 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