ci: reuse sm.branch as the image tag directly
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user