]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Github actions script to update ingame credits for contributors (#20345)
authorVasilis <vasilis@pikachu.systems>
Mon, 9 Oct 2023 23:42:53 +0000 (01:42 +0200)
committerGitHub <noreply@github.com>
Mon, 9 Oct 2023 23:42:53 +0000 (16:42 -0700)
.github/workflows/update-credits.yml [new file with mode: 0644]

diff --git a/.github/workflows/update-credits.yml b/.github/workflows/update-credits.yml
new file mode 100644 (file)
index 0000000..09844f4
--- /dev/null
@@ -0,0 +1,32 @@
+name: Update Contrib and Patreons in credits
+
+on:
+  workflow_dispatch:
+  schedule:
+    - cron: 0 0 * * 0
+    
+jobs:
+  get_credits:
+    runs-on: ubuntu-latest
+    # Hey there fork dev! If you like to include your own contributors in this then you can probably just change this to your own repo
+    # Do this in dump_github_contributors.ps1 too into your own repo
+    if: github.repository == 'space-wizards/space-station-14'
+    
+    steps:
+      - uses: actions/checkout@v3.6.0
+        with:
+          ref: master
+        
+      - name: Get this week's Contributors
+        shell: pwsh
+        run: Tools/dump_github_contributors.ps1 > Resources/Credits/GitHub.txt
+
+      # TODO
+      #- name: Get this week's Patreons
+      #  run: Tools/script2dumppatreons > Resources/Credits/Patrons.yml        
+        
+      - name: Commit new credit files
+        uses: stefanzweifel/git-auto-commit-action@v4
+        with:
+          commit_message: Update Credits
+          commit_author: PJBot <pieterjan.briers+bot@gmail.com>