mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-11-13 14:53:14 +01:00
openwrt-vm and umbrel-os-vm kept the DevScripts base URL when they moved over, and telemetry filed their production runs under DevScripts. The check fails a pull request that adds such a URL to ct, install, vm or tools.
28 lines
641 B
YAML
Generated
28 lines
641 B
YAML
Generated
name: Check Script Repo URL
|
|
|
|
on:
|
|
pull_request:
|
|
branches: ["main"]
|
|
paths:
|
|
- "ct/**"
|
|
- "install/**"
|
|
- "vm/**"
|
|
- "tools/**"
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
check:
|
|
if: github.repository == 'community-scripts/ProxmoxVE'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
|
|
- name: Reject DevScripts URLs
|
|
run: |
|
|
if grep -rnE 'community-scripts/(ProxmoxVED|DevScripts)/' ct install vm tools; then
|
|
echo "::error::These lines point at DevScripts, so telemetry files the runs there. Use community-scripts/ProxmoxVE."
|
|
exit 1
|
|
fi
|