Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: avoid common illegal filename characters #110

Merged
merged 1 commit into from
Apr 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 19 additions & 12 deletions .github/workflows/checkrefs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,22 @@ jobs:
checkrefs:
runs-on: bullseye
steps:
- uses: actions/checkout@v3
- name: Run checkrefs.py
run: |
ERRLOG="${GITHUB_WORKSPACE}/errlog.txt"
cd /0ad/source/tools/entity
python3 ./checkrefs.py -m "${GITHUB_WORKSPACE}" -tax 2> $ERRLOG
LOG_CONTENTS=$(cat $ERRLOG)
if [ -z "$LOG_CONTENTS" ]; then
exit 0
fi
echo $LOG_CONTENTS
exit 1
- uses: actions/checkout@v3
- name: Run checkrefs.py
run: |
ERRLOG="${GITHUB_WORKSPACE}/errlog.txt"
cd /0ad/source/tools/entity
python3 ./checkrefs.py -m "${GITHUB_WORKSPACE}" -tax 2> $ERRLOG
LOG_CONTENTS=$(cat $ERRLOG)
if [ -z "$LOG_CONTENTS" ]; then
exit 0
fi
echo $LOG_CONTENTS
exit 1

- uses: jitterbit/get-changed-files@v1
- run: |
for file in ${{ steps.files.outputs.all }}; do
[[ "$file" =~ ^maps/(random|scenarios|skirmishes)/[^/]+$ ]] || continue
[[ $(basename "${file%.*}") =~ ^[0-9a-z_]+$ ]] || exit 1
done
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file added maps/skirmishes/arabia_4_p.pmp
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.