| 1 | name: Validate tar based distributions |
| 2 | |
| 3 | on: |
| 4 | pull_request: |
| 5 | paths: ['distributions/**'] |
| 6 | |
| 7 | permissions: |
| 8 | contents: read |
| 9 | |
| 10 | jobs: |
| 11 | check: |
| 12 | name: Validate tar based distributions changes |
| 13 | runs-on: ubuntu-latest |
| 14 | steps: |
| 15 | - name: Checkout repo |
| 16 | uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
| 17 | with: |
| 18 | fetch-depth: 0 |
| 19 | |
| 20 | - name: Install pip packages |
| 21 | run: pip install -r distributions/requirements.txt |
| 22 | shell: bash |
| 23 | |
| 24 | - name: Run validation |
| 25 | run: | |
| 26 | python distributions/validate-modern.py \ |
| 27 | --repo-path . \ |
| 28 | --compare-with-branch 'origin/${{ github.base_ref }}' \ |
| 29 | --manifest distributions/DistributionInfo.json \ |
| 30 | |
| 31 | shell: bash |