Commit graph

24 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
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 59d006123b feat(ci): use Release Notes Assistant 2024-11-18 15:32:02 +01:00
natct 72f5daf6a7 feat: cleaunp script 2024-11-04 11:07:42 +01:00
Paul van Tilburg b0876c539d
Add ability to set the release title
This PR allows you the set/override the release title, which was set to
the tag and still defaults to the tag.
2024-08-09 16:39:58 +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
benniekiss de47e391d3 Allow downloading releases from private repos (#15)
Closes #14

Reviewed-on: https://code.forgejo.org/actions/forgejo-release/pulls/15
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-06 20:04:23 +00:00
Léana 江 eb0fcc44a1 fetch tea for the matching architecture
Reviewed-on: https://code.forgejo.org/actions/forgejo-release/pulls/11
Co-authored-by: Léana 江 <leana.jiang@icloud.com>
Co-committed-by: Léana 江 <leana.jiang@icloud.com>
2024-05-12 11:02:43 +00:00
Earl Warren 809ad6c4e5
override an existing release by the same tag 2024-02-12 14:32:32 +01:00
Neshura 81f7998d0e Add PRELEASE handling to forgejo-release.sh 2024-01-03 18:25:06 +00:00
Earl Warren 2d51a3fa48
workaround race condition in v1.20
Refs: https://codeberg.org/forgejo/forgejo/issues/1370
2023-09-02 10:55:33 +02:00
Earl Warren ca1a3fb023
allow tea login multiple times 2023-08-25 11:41:43 +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 56c1c975a3
mark the release as draft until it is ready 2023-05-24 01:09:00 +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 ba62e00392
quietly apt-get update 2023-03-30 15:22:00 +02:00
Earl Warren ca02749d65
adapt shell tests 2023-03-30 09:14:15 +02:00
Earl Warren ba4ac4e80d
test upload & download 2023-03-29 19:12:28 +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