Add checkmajorversion.yml

This commit is contained in:
Laurent Destailleur
2025-11-19 15:39:59 +01:00
parent a605244dea
commit 3b74f64d00

41
.github/workflows/checkmajorversion.yml vendored Normal file
View File

@@ -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