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