ci: reuse sm.branch as the image tag directly

This commit is contained in:
Nicholas Hastings
2026-07-12 13:08:48 -04:00
parent 81477e9314
commit b8f657c9b3
+1 -3
View File
@@ -110,10 +110,8 @@ jobs:
sm: sm:
- label: "1.12" - label: "1.12"
branch: "1.12-dev" branch: "1.12-dev"
image_tag: "1.12-dev"
- label: "1.13" - label: "1.13"
branch: "master" branch: "master"
image_tag: "master"
steps: steps:
- name: Checkout - name: Checkout
@@ -130,7 +128,7 @@ jobs:
for f in Pawn/*.sp; do for f in Pawn/*.sp; do
echo "::group::${f}" echo "::group::${f}"
docker run --rm -v "${{ github.workspace }}:/work" -w /work \ docker run --rm -v "${{ github.workspace }}:/work" -w /work \
ghcr.io/alliedmodders/sourcemod-spcomp:${{ matrix.sm.image_tag }} \ ghcr.io/alliedmodders/sourcemod-spcomp:${{ matrix.sm.branch }} \
-i Pawn/includes -i sourcemod/plugins/include \ -i Pawn/includes -i sourcemod/plugins/include \
"${f}" -o "compiled/$(basename "${f%.sp}.smx")" \ "${f}" -o "compiled/$(basename "${f%.sp}.smx")" \
|| status=1 || status=1