From 242ce4bbe0fe7322b13192bae6443555a6c7074a Mon Sep 17 00:00:00 2001
From: Griefed <griefed@griefed.de>
Date: Mon, 20 Dec 2021 18:55:16 +0100
Subject: [PATCH] ci: Change dependabot branch prefix. Upload artifacts from
 gradle builds

---
 .github/dependabot.yml               |  6 +++++-
 .github/workflows/greetings.yml      | 13 -------------
 .github/workflows/label_sponsors.yml | 16 ----------------
 .github/workflows/test.yml           | 16 +++++++++++++++-
 4 files changed, 20 insertions(+), 31 deletions(-)
 delete mode 100644 .github/workflows/greetings.yml
 delete mode 100644 .github/workflows/label_sponsors.yml

diff --git a/.github/dependabot.yml b/.github/dependabot.yml
index 8b590c2..d411524 100644
--- a/.github/dependabot.yml
+++ b/.github/dependabot.yml
@@ -15,6 +15,8 @@ updates:
      - "dependencies"
      - "github-actions"
     target-branch: "dependabot"
+    pull-request-branch-name:
+      separator: "-"
 
   - package-ecosystem: "gradle"
     directory: "/"
@@ -25,4 +27,6 @@ updates:
     labels:
       - "dependencies"
       - "gradle"
-    target-branch: "dependabot"
\ No newline at end of file
+    target-branch: "dependabot"
+    pull-request-branch-name:
+      separator: "-"
\ No newline at end of file
diff --git a/.github/workflows/greetings.yml b/.github/workflows/greetings.yml
deleted file mode 100644
index 6b74e36..0000000
--- a/.github/workflows/greetings.yml
+++ /dev/null
@@ -1,13 +0,0 @@
-name: Greetings
-
-on: [pull_request, issues]
-
-jobs:
-  greeting:
-    runs-on: ubuntu-latest
-    steps:
-    - uses: actions/first-interaction@v1
-      with:
-        repo-token: ${{ secrets.GITHUB_TOKEN }}
-        issue-message: 'Thanks for opening your first issue here! Be sure to follow the [bug](https://github.com/Griefed/ServerPackCreator/blob/1bbbfc59207e801068aa0f92ccd2869079fce7da/.github/ISSUE_TEMPLATE/bug-report.md), [feature](https://github.com/Griefed/ServerPackCreator/blob/1bbbfc59207e801068aa0f92ccd2869079fce7da/.github/ISSUE_TEMPLATE/feature-request.md), or [documentation](https://github.com/Griefed/ServerPackCreator/blob/1bbbfc59207e801068aa0f92ccd2869079fce7da/.github/ISSUE_TEMPLATE/documentation-request.md) issue templates!'
-        pr-message: 'Thanks for opening this pull request! Be sure to follow the [pull request template](https://github.com/Griefed/ServerPackCreator/blob/1bbbfc59207e801068aa0f92ccd2869079fce7da/.github/ISSUE_TEMPLATE/pull_request.md)!'
diff --git a/.github/workflows/label_sponsors.yml b/.github/workflows/label_sponsors.yml
deleted file mode 100644
index e545437..0000000
--- a/.github/workflows/label_sponsors.yml
+++ /dev/null
@@ -1,16 +0,0 @@
-name: Label sponsors
-
-on:
-  pull_request:
-    types: [opened]
-  issues:
-    types: [opened]
-
-jobs:
-  build:
-    name: Label issues and pull requests made by sponsors
-    runs-on: ubuntu-latest
-    steps:
-      - uses: JasonEtco/is-sponsor-label-action@v1
-        env:
-          GITHUB_TOKEN: ${{ secrets.CR_PAT }}
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 00ffeb1..19ea3bc 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -27,4 +27,18 @@ jobs:
       - name: Build with Gradle
         run: ./gradlew about build --no-daemon --info
       - name: List files in libs
-        run: ls -ahl build/libs
\ No newline at end of file
+        run: ls -ahl build/libs
+      - uses: actions/upload-artifact@v2
+        with:
+          name: build-artifacts-gradle
+          path: |
+            build/libs/
+            !build/libs/libraries/
+            frontend/dist/spa
+          if-no-files-found: warn # 'warn' or 'ignore' are also available, defaults to `warn`
+      - uses: actions/upload-artifact@v2
+        if: failure()
+        with:
+          name: report
+          path: build/reports/tests/test/
+          if-no-files-found: warn # 'warn' or 'ignore' are also available, defaults to `warn`
\ No newline at end of file
-- 
GitLab