check profile for PRs (#4251)

* check profile for PRs
This commit is contained in:
SoftFever 2024-02-28 22:02:22 +08:00 committed by GitHub
parent a88f31cdaa
commit 0e1307ab83
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

30
.github/workflows/check_profiles.yml vendored Normal file
View file

@ -0,0 +1,30 @@
name: Check locale
on:
pull_request:
branches:
- main
paths:
- 'resources/profiles/**'
- ".github/workflows/check_profiles.yml"
jobs:
check_translation:
name: Check profiles
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
# download
- name: Download
working-directory: ${{ github.workspace }}
run: |
curl -LJO https://github.com/SoftFever/Orca_tools/releases/download/1/OrcaSlicer_profile_validator_ubuntu
chmod +x ./OrcaSlicer_profile_validator_ubuntu
# validate profiles
- name: validate profiles
run: |
./OrcaSlicer_profile_validator_ubuntu -p ${{ github.workspace }}/resources/profiles -l 2