From 26acdcdb2ee44b71608df7282a818bc44a6e4b0e Mon Sep 17 00:00:00 2001
From: benniekiss <bgmt@mail.bbalm.me>
Date: Mon, 8 Jul 2024 11:33:05 -0400
Subject: [PATCH] refactor upload-download test

---
 .../upload-download/.forgejo/workflows/test.yml | 17 +++++++++++++++--
 1 file changed, 15 insertions(+), 2 deletions(-)

diff --git a/testdata/upload-download/.forgejo/workflows/test.yml b/testdata/upload-download/.forgejo/workflows/test.yml
index 87af2c9..ac99d88 100644
--- a/testdata/upload-download/.forgejo/workflows/test.yml
+++ b/testdata/upload-download/.forgejo/workflows/test.yml
@@ -28,6 +28,16 @@ jobs:
           release-notes: "RELEASE NOTES"
           override: "true"
           verbose: true
+      - if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
+        id: release-upload-v2
+        uses: SELF@vTest
+        with:
+          direction: upload
+          tag: v2.0
+          token: FORGEJO_TOKEN
+          release-dir: upload-dir-v2
+          release-notes: "RELEASE NOTES V2"
+          verbose: true
       - if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
         id: release-download
         uses: SELF@vTest
@@ -37,15 +47,18 @@ jobs:
           token: FORGEJO_TOKEN
           release-dir: download-dir
           verbose: true
+      - if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
+        run: |
+          diff -u upload-dir download-dir
       - if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
         id: release-download-latest
         uses: SELF@vTest
         with:
           direction: download
           token: FORGEJO_TOKEN
-          release-dir: download-dir
+          release-dir: download-dir-v2
           download-latest: true
           verbose: true
       - if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
         run: |
-          diff -u upload-dir download-dir
+          diff -u upload-dir-v2 download-dir-v2