edit files for eierland.net #6752
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Validate | |
| on: | |
| pull_request_target: | |
| types: | |
| - opened | |
| - reopened | |
| - synchronize | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| jobs: | |
| validate_images: | |
| name: Images | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout PR merge commit | |
| uses: actions/checkout@v4 | |
| with: | |
| # This workflow intentionally checks out PR contents to validate JSON and | |
| # image files only. The checked-out repository must never be built or | |
| # execute scripts (npm, make, gradle, etc.), otherwise this becomes | |
| # vulnerable to pwn requests. | |
| ref: refs/pull/${{ github.event.number }}/merge | |
| allow-unsafe-pr-checkout: true | |
| - name: Validate images | |
| uses: LabyMod/server-media/.github/actions/validate@master | |
| validate_manifest: | |
| name: Manifest | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout PR merge commit | |
| uses: actions/checkout@v4 | |
| with: | |
| # This workflow intentionally checks out PR contents to validate JSON and | |
| # image files only. The checked-out repository must never be built or | |
| # execute scripts (npm, make, gradle, etc.), otherwise this becomes | |
| # vulnerable to pwn requests. | |
| ref: refs/pull/${{ github.event.number }}/merge | |
| allow-unsafe-pr-checkout: true | |
| - name: Get changed files | |
| uses: lots0logs/gh-action-get-changed-files@6cb5164a823dbf3318b7c8032a333b4b7ed425b2 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Add json | |
| run: | |
| cp ${HOME}/files.json ./ | |
| - name: Validate manifest | |
| uses: LabyMod/server-media/.github/actions/validate-manifest@master | |
| env: | |
| PR_ID: ${{ github.event.pull_request.number }} | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| COMMIT_SHA: ${{ github.event.pull_request.head.sha }} | |
| COMMIT_URL: ${{ github.event.pull_request.head.repo.commits_url }} | |
| PR_ACTION: ${{ github.event.action }} |