Bläddra i källkod

Manual update of contributors list (#3325)

* Create manually-update-contributors-list

* Update and rename manually-update-contributors-list to manual-update-contributors-li.yamlst

* Update build.yaml

* Rename manual-update-contributors-li.yamlst to manual-update-contributors-li.yaml

* Rename manual-update-contributors-li.yaml to manual-update-contributors-list.yaml

* Update README.md
CaCO3 1 år sedan
förälder
incheckning
f1979a142e
3 ändrade filer med 24 tillägg och 22 borttagningar
  1. 0 21
      .github/workflows/build.yaml
  2. 21 0
      .github/workflows/manual-update-contributors-list.yaml
  3. 3 1
      README.md

+ 0 - 21
.github/workflows/build.yaml

@@ -390,27 +390,6 @@ jobs:
 #        git push origin HEAD:master
 
 
-#########################################################################################
-## Update Contributors List in README.md on a release
-#########################################################################################
-  contrib-readme-job:
-    if: github.event_name == 'release' && github.event.action == 'published' # Only run on release but not on prerelease
-    needs: [prepare-release]
-    runs-on: ubuntu-latest
-    permissions:
-      contents: write
-      pull-requests: write
-    steps:
-        - name: Contribute List
-          uses: akhilmhdh/contributors-readme-action@v2.3.10
-          with:
-              image_size: 50  
-              use_username: true
-              columns_per_row: 8
-          env:
-              GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-
-
 #########################################################################################
 ## Update the Web Installer on a release
 #########################################################################################

+ 21 - 0
.github/workflows/manual-update-contributors-list.yaml

@@ -0,0 +1,21 @@
+# This updates the Contributors list in the README.md
+# it only gets run on:
+#  - Manually triggered
+
+name: Manually update contributors list
+
+on:
+  workflow_dispatch: # Run on manual trigger
+
+jobs:
+  manually-update-contributors-list: 
+    runs-on: ubuntu-latest
+    name: A job to automatically update the contributors list in the README.md
+    permissions:
+      contents: write
+      pull-requests: write
+    steps:
+        - name: Contribute List
+          uses: akhilmhdh/contributors-readme-action@v2.3.10
+          env:
+              GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

+ 3 - 1
README.md

@@ -153,4 +153,6 @@ There are some ideas and feature requests which are not currently being pursued
 ---
 
 ## Our Contributors ❤️
-<!--
+<!-- Do not manually edit this section! It should get updated using the Github action "Manually update contributors list" -->
+<!-- readme: contributors -start -->
+<!-- readme: contributors -end -->