Enforce LF when packing #51
This file contains 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: "Check" | |
on: | |
push: | |
pull_request: | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Setup Python" | |
uses: "actions/setup-python@v5" | |
with: | |
python-version: 3.11.9 | |
- name: "Checkout code" | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: "Check packs format" | |
run: | | |
make check | |
- name: "Prepare deterministic diff" | |
run: | | |
gunzip --keep -- */download/*.tar.gz | |
git rm -- */download/*.tar.gz | |
git add -- */download/*.tar | |
- name: "Repack everything" | |
run: | | |
make repack | |
- name: "Upload artifacts to GitHub" | |
uses: actions/upload-artifact@v4 | |
with: | |
path: | | |
*/download | |
- name: "Check deterministic diff" | |
run: | | |
gunzip -- */download/*.tar.gz | |
git add --intent-to-add -- */download/*.tar | |
git diff --exit-code -- */download/*.tar | |
- name: "Trigger reindex" | |
env: | |
INDEXER_URL: ${{ secrets.INDEXER_URL }} | |
if: ${{ env.INDEXER_URL != '' && github.ref_name == 'dev' }} | |
run: | | |
curl --fail -L -H "Token: ${{ secrets.INDEXER_TOKEN }}" \ | |
"${{ secrets.INDEXER_URL }}"/asset-packs/reindex; |