From 3b74f64d00aedd6383cf529e7ac009566b57b451 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 19 Nov 2025 15:39:59 +0100 Subject: [PATCH] Add checkmajorversion.yml --- .github/workflows/checkmajorversion.yml | 41 +++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/checkmajorversion.yml diff --git a/.github/workflows/checkmajorversion.yml b/.github/workflows/checkmajorversion.yml new file mode 100644 index 00000000000..f29e393ed99 --- /dev/null +++ b/.github/workflows/checkmajorversion.yml @@ -0,0 +1,41 @@ +--- +# This is a basic workflow to check the lock on major version (to lock some files on certified versions) +name: Check lock of major version + +on: + # workflow called by the parent workflow ci.yml + workflow_call: + inputs: + gh_event: + required: true + type: string + # can run job manually + workflow_dispatch: + +concurrency: + group: phan-${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +env: + gh_event: ${{ inputs.gh_event || github.event_name }} + GITHUB_JSON: ${{ toJSON(github) }} # Helps in debugging Github Action + +jobs: + checkmajorversion: + name: Check lock of major version with generate_filelist_xml.php + runs-on: ubuntu-latest + # Do not run schedule on forks + if: | + github.repository == 'Dolibarr/dolibarr' + || github.event.schedule == false + steps: + - uses: actions/checkout@v5 + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: 8.2 + coverage: none # disable xdebug, pcov + - name: Run generate_filelist_xml.php + run: | + # shellcheck disable=2086 + dev/build/generate_filelist_xml.php checklock=auto unalterable_files