File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Aristeas NewUniversalUpload
2+ on :
3+ workflow_dispatch :
4+ push :
5+ branches :
6+ - main
7+ - stable
8+
9+ jobs :
10+ UploadMods :
11+ runs-on : self-hosted
12+ steps :
13+ - uses : actions/checkout@v4.1.4
14+ with :
15+ fetch-depth : 0
16+
17+ - name : Get changed files
18+ id : changed-files
19+ uses : tj-actions/changed-files@v44
20+ with :
21+ separator : ' ,'
22+
23+ # - name: List all changed files
24+ # env:
25+ # ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
26+ # run: |
27+ # for file in ${ALL_CHANGED_FILES}; do
28+ # echo "$file was changed"
29+ # done
30+ - id : test_SEWT
31+ run : |
32+ & "C:\Program Files\SCUniversalUpload\SC_NewUniversalUpload.exe" --repo "${{ github.workspace }}" --changes "${{ steps.changed-files.outputs.all_changed_and_modified_files }}" --changelog "${{ github.event.head_commit.message }}"
33+
34+ - uses : EndBug/add-and-commit@v9
Original file line number Diff line number Diff line change 1+ name : Aristeas BuildScripts
2+ on :
3+ workflow_dispatch :
4+ pull_request :
5+ branches : [ "main" ]
6+
7+ jobs :
8+ BuildMods :
9+ runs-on : self-hosted
10+ steps :
11+ - uses : actions/checkout@v4.1.4
12+ with :
13+ fetch-depth : 0
14+
15+ - name : Get changed files
16+ id : changed-files
17+ uses : tj-actions/changed-files@v44
18+ with :
19+ separator : ' ,'
20+
21+ # - name: List all changed files
22+ # env:
23+ # ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
24+ # run: |
25+ # for file in ${ALL_CHANGED_FILES}; do
26+ # echo "$file was changed"
27+ # done
28+ - id : build-mods
29+ run : |
30+ & "C:\Program Files\SCUniversalUpload\SC_NewUniversalUpload.exe" "build" --repo "${{ github.workspace }}" --changes "${{ steps.changed-files.outputs.all_changed_and_modified_files }}"
Original file line number Diff line number Diff line change 1+ name : XML Validation
2+ on :
3+ pull_request :
4+ branches : [ "main" ]
5+ workflow_dispatch :
6+ jobs :
7+ validate-xml :
8+ runs-on : ubuntu-latest
9+ steps :
10+ - name : Checkout repository
11+ uses : actions/checkout@v4
12+
13+ - name : Install xmllint
14+ run : sudo apt-get update && sudo apt-get install -y libxml2-utils
15+
16+ - name : Validate XML against XSD
17+ run : |
18+ errors=0
19+
20+ while IFS= read -r -d '' file; do
21+ # echo "Validating $file"
22+ if ! xmllint --noout "$file"; then
23+ echo "Error in $file"
24+ errors=$((errors + 1))
25+ fi
26+ done < <(find . -name "*.sbc" -print0)
27+
28+ if [ "$errors" -ne 0 ]; then
29+ echo "$errors SBC files failed validation"
30+ exit 1
31+ else
32+ echo "All SBC files validated successfully"
33+ fi
Original file line number Diff line number Diff line change 1+ < ?xml version= " 1.0" encoding= " utf-8" ?>
2+ < ModMetadata xmlns: xsd= " http://www.w3.org/2001/XMLSchema" xmlns: xsi= " http://www.w3.org/2001/XMLSchema-instance" >
3+ < ModVersion> 1.0 </ ModVersion>
4+ </ ModMetadata>
You can’t perform that action at this time.
0 commit comments