diff options
author | Vitaliy Filippov <vitalif@mail.ru> | 2023-06-29 05:58:56 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-29 10:58:56 +0800 |
commit | f0b773e0ced9110f34326398e5b6c55ad6e25201 (patch) | |
tree | 6780cd1292474dbd7ecd4667430acdb299f1d80d /modules/actions | |
parent | b08647f0b9d73db0f0c23dfddadad2a245cb198e (diff) | |
download | gitea-f0b773e0ced9110f34326398e5b6c55ad6e25201.tar.gz gitea-f0b773e0ced9110f34326398e5b6c55ad6e25201.zip |
Support downloading raw task logs (#24451)
Hi!
This pull request adds support for downloading raw task logs for Gitea
Actions, similar to Github Actions
It looks like the following:
![image](https://user-images.githubusercontent.com/945339/235376746-405d5019-710b-468b-8113-9e82eab8e752.png)
Diffstat (limited to 'modules/actions')
-rw-r--r-- | modules/actions/log.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/actions/log.go b/modules/actions/log.go index 36bed931fa..cdf18646aa 100644 --- a/modules/actions/log.go +++ b/modules/actions/log.go @@ -73,7 +73,7 @@ func WriteLogs(ctx context.Context, filename string, offset int64, rows []*runne } func ReadLogs(ctx context.Context, inStorage bool, filename string, offset, limit int64) ([]*runnerv1.LogRow, error) { - f, err := openLogs(ctx, inStorage, filename) + f, err := OpenLogs(ctx, inStorage, filename) if err != nil { return nil, err } @@ -141,7 +141,7 @@ func RemoveLogs(ctx context.Context, inStorage bool, filename string) error { return nil } -func openLogs(ctx context.Context, inStorage bool, filename string) (io.ReadSeekCloser, error) { +func OpenLogs(ctx context.Context, inStorage bool, filename string) (io.ReadSeekCloser, error) { if !inStorage { name := DBFSPrefix + filename f, err := dbfs.Open(ctx, name) |