From 3788dffe5b3947e85311834265c289cbd34fe512 Mon Sep 17 00:00:00 2001 From: Patrick Meade Date: Tue, 9 Jul 2024 20:17:34 -0500 Subject: [PATCH] Add CI check for SUNS poster --- .github/workflows/check_suns.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/check_suns.yml diff --git a/.github/workflows/check_suns.yml b/.github/workflows/check_suns.yml new file mode 100644 index 0000000000..fd728029c6 --- /dev/null +++ b/.github/workflows/check_suns.yml @@ -0,0 +1,31 @@ +name: QA +on: + push: + branches: + - master + pull_request: + branches: + - master + merge_group: + branches: + - master + +jobs: + check_file_dir: + if: ${{ !contains(github.event.head_commit.message, '[ci skip]') }} + name: "Check (poster/solgov/suns)" + runs-on: ubuntu-latest + steps: + - name: Checkout Project + uses: actions/checkout@v4 + + - name: Check /obj/structure/sign/poster/solgov/suns + run: | + output=$(fgrep -i -r "/obj/structure/sign/poster/solgov/suns" .) + if [ -n "$output" ]; then + echo "Error: Found occurrences of '/obj/structure/sign/poster/solgov/suns'" + echo "Replace with one of:" + echo " /obj/structure/sign/poster/contraband/free_tonto" + echo " /obj/structure/sign/poster/contraband/roseusfilm1" + exit 1 + fi