Commit graph

34 commits

Author SHA1 Message Date
limiting-factor 0079bcb471 fix: override=true must not needlessly delete a tag
If the tag to be set is exactly the same as the tag that exists, do
not delete it.

When the tag is recreated although it is not necessary, it may trigger
workflows that have already been triggered and send the workflow in a
loop.

- split `get_tag` & `matched_tag` out of ensure_tag
- in case of an override, only delete the tag if it fails `matched_tag`
- trace shell lines to help debug
- add testing
2025-02-23 21:22:31 +01:00
limiting-factor 9d4ddfbaad chore(editorconfig): comply with .editorconfig 2025-02-23 19:02:08 +01:00
Renovate Bot 410b453871
Replace actions/setup-forgejo action with actions/setup-forgejo v1.0.1 2024-12-10 00:02:00 +00:00
Crown0815 4d26949b75 Add support for files with spaces in their names (#24)
So far when uploading files containing spaces, such as `file 3.txt`, the `tea` command will be broken due to incorrectly formatted `tea` arguments.
I have been receiving `Remote repository required: Specify ID via --repo or execute from a local git repo.` which was not helpful until I turned on `verbose` and saw the whole command.

This fix should resolve this issue and thereby add active support for files with spaces.

Co-authored-by: Felix Kröner <felix.kroener@dynamic-biosensors.com>
Reviewed-on: https://code.forgejo.org/actions/forgejo-release/pulls/24
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
Co-authored-by: Crown0815 <crown0815@noreply.code.forgejo.org>
Co-committed-by: Crown0815 <crown0815@noreply.code.forgejo.org>
2024-12-09 05:38:35 +00:00
natct 5069284121 feat: add an option to hide archive link 2024-12-03 09:48:47 +01:00
natct 0ac99a8b42 feat(ci): add test for rna 2024-11-18 15:32:02 +01:00
Paul van Tilburg 9c0ac967a9
Add test ensuring no breakage because of shell expansion 2024-08-17 11:24:08 +02:00
benniekiss a5aa633273 Support downloading the latest release of a repo (#16)
This PR adds the functionality to download the latest release from a repo. The API provides an endpoint to do so, so an option has been added to the action.

This closes #12

Co-authored-by: benniekiss <bgmt@mail.bbalm.me>
Reviewed-on: https://code.forgejo.org/actions/forgejo-release/pulls/16
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
Co-authored-by: benniekiss <benniekiss@noreply.code.forgejo.org>
Co-committed-by: benniekiss <benniekiss@noreply.code.forgejo.org>
2024-07-08 18:49:13 +00:00
Earl Warren 809ad6c4e5
override an existing release by the same tag 2024-02-12 14:32:32 +01:00
Earl Warren 241b5920f4
use branch_tip instead of forgejo-test-helper.sh output 2024-01-03 22:32:27 +01:00
Earl Warren 837e49d432
show forgejo logs on failure() 2023-09-02 10:55:33 +02:00
Earl Warren 069735deb1
upgrade tests to 1.20 2023-09-02 10:55:32 +02:00
Earl Warren c6d7843bab
action: support for GPG signing 2023-05-26 15:05:07 +02:00
Earl Warren f886973249
GPG signing logic 2023-05-26 14:49:39 +02:00
Earl Warren 358b55efd4
wait for a release to no longer be draft before downloading 2023-05-24 01:32:23 +02:00
Earl Warren bb345b780c
LICENSE is MIT 2023-04-01 11:12:56 +02:00
Earl Warren b818607d61
no doer 2023-03-31 00:19:35 +02:00
Earl Warren a9b7d752f4
exclude tags 2023-03-30 23:50:46 +02:00
Earl Warren 28d6f1caa5
do not upload emacs backupfiles 2023-03-30 17:45:40 +02:00
Earl Warren 25027fcba8
set token from FORGEJO_TOKEN in the test environment 2023-03-30 17:16:24 +02:00
Earl Warren cb070c9a96
fallback to env.GITHUB_SERVER_URL if FORGEJO is not set 2023-03-30 17:16:24 +02:00
Earl Warren 3a07a6062f
non nested upload/download tests 2023-03-30 10:43:52 +02:00
Earl Warren df1717d07c
s/upload-download/nested-upload-download/ 2023-03-30 09:14:15 +02:00
Earl Warren ca02749d65
adapt shell tests 2023-03-30 09:14:15 +02:00
Earl Warren d12e05c347
use a different IP prefix in nested forgejo instances 2023-03-30 01:32:08 +02:00
Earl Warren c00160628d
add release notes 2023-03-30 00:05:14 +02:00
Earl Warren 429c93d710
specify the SHA when the repo running the action is unrelated 2023-03-29 23:45:19 +02:00
Earl Warren 21454480e1
use the test forgejo instance 2023-03-29 19:21:20 +02:00
Earl Warren ba4ac4e80d
test upload & download 2023-03-29 19:12:28 +02:00
Earl Warren 89b6ae4da6
display the runner logs as they go for debugging 2023-03-27 23:52:25 +02:00
Earl Warren c16405df52
display the runner logs on failure for debugging 2023-03-27 17:46:00 +02:00
Earl Warren d37076a4e9
recursive tests 2023-03-27 17:17:27 +02:00
Earl Warren 245db64a1e
adapt and test 2023-03-26 23:03:56 +02:00
Earl Warren fc5cdffbe4
bootstrap with file from forgejo/releases 2023-03-26 17:51:25 +02:00