mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 18:47:21 +08:00
ci: checks for failsafe web metadata updates
Signed-off-by: Ramon Roche <mrpollo@gmail.com>
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
name: Docs Metadata Checks
|
name: Docs Metadata Checks
|
||||||
|
|
||||||
# Grant write permission so PR workflows can commit updated JSONs back
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
|
||||||
@@ -14,7 +13,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
uorb-graph-check:
|
uorb-graph-check:
|
||||||
name: Check uORB graph JSONs
|
name: Check uORB graph JSONs
|
||||||
runs-on: [runs-on,runner=4cpu-linux-x64,image=ubuntu24-full-x64,"run-id=${{ github.run_id }}",spot=true,extras=s3-cache]
|
runs-on: [runs-on,runner=4cpu-linux-x64,image=ubuntu22-full-x64,"run-id=${{ github.run_id }}",spot=true]
|
||||||
container:
|
container:
|
||||||
image: ghcr.io/px4/px4-dev:v1.16.0-rc1
|
image: ghcr.io/px4/px4-dev:v1.16.0-rc1
|
||||||
|
|
||||||
@@ -27,3 +26,19 @@ jobs:
|
|||||||
|
|
||||||
- name: Run uORB graph docs check
|
- name: Run uORB graph docs check
|
||||||
run: Tools/ci/metadata_uorb_graph.sh --test-only
|
run: Tools/ci/metadata_uorb_graph.sh --test-only
|
||||||
|
|
||||||
|
failsafe-web-check:
|
||||||
|
name: Check failsafe web metadata files
|
||||||
|
runs-on: [runs-on,runner=4cpu-linux-x64,image=ubuntu22-full-x64,"run-id=${{ github.run_id }}",spot=true]
|
||||||
|
container:
|
||||||
|
image: ghcr.io/px4/px4-dev:v1.16.0-rc1
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Mark all directories safe for Git
|
||||||
|
run: git config --system --add safe.directory '*'
|
||||||
|
|
||||||
|
- name: Run failsafe web metadata check
|
||||||
|
run: Tools/ci/metadata_failsafe_web.sh --test-only
|
||||||
|
|||||||
Reference in New Issue
Block a user