mirror of
https://code.forgejo.org/actions/forgejo-release.git
synced 2025-07-27 07:28:20 +02:00
fix(ci): s/FORGEJO_TOKEN/FORGEJO_TEST_TOKEN/ (#64)
Reviewed-on: https://code.forgejo.org/actions/forgejo-release/pulls/64 Co-authored-by: Earl Warren <contact@earl-warren.org> Co-committed-by: Earl Warren <contact@earl-warren.org>
This commit is contained in:
parent
47387821e5
commit
d051ae27b2
4 changed files with 19 additions and 29 deletions
|
@ -98,7 +98,7 @@ jobs:
|
||||||
uses: SELF@vTest
|
uses: SELF@vTest
|
||||||
with:
|
with:
|
||||||
direction: upload
|
direction: upload
|
||||||
tag: v1.2
|
tag: v1.3
|
||||||
token: FORGEJO_TEST_TOKEN
|
token: FORGEJO_TEST_TOKEN
|
||||||
release-dir: upload-dir
|
release-dir: upload-dir
|
||||||
release-notes: "RELEASE NOTES"
|
release-notes: "RELEASE NOTES"
|
||||||
|
@ -109,7 +109,7 @@ jobs:
|
||||||
uses: SELF@vTest
|
uses: SELF@vTest
|
||||||
with:
|
with:
|
||||||
direction: download
|
direction: download
|
||||||
tag: v1.2
|
tag: v1.3
|
||||||
token: FORGEJO_TEST_TOKEN
|
token: FORGEJO_TEST_TOKEN
|
||||||
release-dir: download-dir
|
release-dir: download-dir
|
||||||
verbose: true
|
verbose: true
|
||||||
|
|
|
@ -4,7 +4,7 @@ name: Upload (and download) a release to (and from) the project that runs the wo
|
||||||
on: [push]
|
on: [push]
|
||||||
jobs:
|
jobs:
|
||||||
upload-download:
|
upload-download:
|
||||||
runs-on: self-hosted
|
runs-on: lxc-bookworm
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
||||||
|
@ -45,28 +45,6 @@ jobs:
|
||||||
- \backslash escape
|
- \backslash escape
|
||||||
- !exclamation_mark
|
- !exclamation_mark
|
||||||
verbose: true
|
verbose: true
|
||||||
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
|
||||||
id: release-upload-slash-in-tag
|
|
||||||
uses: SELF@vTest
|
|
||||||
with:
|
|
||||||
direction: upload
|
|
||||||
tag: a/v3.0
|
|
||||||
token: FORGEJO_TOKEN
|
|
||||||
release-dir: upload-dir
|
|
||||||
release-notes: "RELEASE NOTES"
|
|
||||||
verbose: true
|
|
||||||
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
|
||||||
id: release-upload-override-slash-in-tag
|
|
||||||
uses: SELF@vTest
|
|
||||||
with:
|
|
||||||
direction: upload
|
|
||||||
tag: a/v3.0
|
|
||||||
token: FORGEJO_TOKEN
|
|
||||||
release-dir: upload-dir
|
|
||||||
release-notes-assistant: true
|
|
||||||
hide-archive-link: true
|
|
||||||
override: true
|
|
||||||
verbose: true
|
|
||||||
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
||||||
id: release-download
|
id: release-download
|
||||||
uses: SELF@vTest
|
uses: SELF@vTest
|
||||||
|
@ -91,18 +69,28 @@ jobs:
|
||||||
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
||||||
run: |
|
run: |
|
||||||
diff -u upload-dir-v2 download-dir-v2
|
diff -u upload-dir-v2 download-dir-v2
|
||||||
|
|
||||||
|
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
||||||
|
id: release-upload-slash-in-tag
|
||||||
|
uses: SELF@vTest
|
||||||
|
with:
|
||||||
|
direction: upload
|
||||||
|
tag: v/3.0
|
||||||
|
token: FORGEJO_TEST_TOKEN
|
||||||
|
release-dir: upload-dir-v3
|
||||||
|
release-notes: "RELEASE NOTES"
|
||||||
|
verbose: true
|
||||||
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
||||||
id: release-download-with-slash-in-tag
|
id: release-download-with-slash-in-tag
|
||||||
uses: SELF@vTest
|
uses: SELF@vTest
|
||||||
with:
|
with:
|
||||||
direction: download
|
direction: download
|
||||||
tag: a/v3.0
|
tag: v/3.0
|
||||||
token: FORGEJO_TEST_TOKEN
|
token: FORGEJO_TEST_TOKEN
|
||||||
release-dir: download-dir-v3a
|
release-dir: download-dir-v3
|
||||||
download-latest: true
|
|
||||||
verbose: true
|
verbose: true
|
||||||
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
||||||
run: |
|
run: |
|
||||||
diff -u upload-dir download-dir-v3a
|
diff -u upload-dir-v3 download-dir-v3
|
||||||
- if: failure()
|
- if: failure()
|
||||||
run: docker logs forgejo
|
run: docker logs forgejo
|
||||||
|
|
1
testdata/upload-download/upload-dir-v3/file1-v3.txt
vendored
Normal file
1
testdata/upload-download/upload-dir-v3/file1-v3.txt
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
FILE1-V3
|
1
testdata/upload-download/upload-dir-v3/file2-v3.txt
vendored
Normal file
1
testdata/upload-download/upload-dir-v3/file2-v3.txt
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
FILE2-V3
|
Loading…
Add table
Add a link
Reference in a new issue