]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fail if we attempt to run publish on master (#38431)
authorMyra <vasilis@pikachu.systems>
Sat, 21 Jun 2025 00:32:31 +0000 (02:32 +0200)
committerGitHub <noreply@github.com>
Sat, 21 Jun 2025 00:32:31 +0000 (02:32 +0200)
* Fail if we attempt to run publish on master

BREAKING: FORKS REMOVE THIS

* Update publish.yml

.github/workflows/publish.yml

index 029439563267b61fe01d30d7b1c29a2d583769aa..bb50164b34eddb55b59754514d493b539fcd9bff 100644 (file)
@@ -14,6 +14,10 @@ jobs:
     runs-on: ubuntu-latest
 
     steps:
+    - name: Fail if we are attempting to run on the master branch
+      if: ${{GITHUB.REF_NAME == 'master'}} && github.repository == 'space-wizards/space-station-14'
+      run: exit 1
+
     - name: Install dependencies
       run: sudo apt-get install -y python3-paramiko python3-lxml