forked from cake-build/cake
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request cake-build#4394 from devlead/feature/cake-buildgh-…
…4391 GH4391: GHA cross-job download artifact support
- Loading branch information
Showing
6 changed files
with
153 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
src/Cake.Common/Build/GitHubActions/Commands/Artifact/ListArtifactsRequest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for more information. | ||
|
||
using System.Text.Json.Serialization; | ||
|
||
namespace Cake.Common.Build.GitHubActions.Commands.Artifact | ||
{ | ||
#pragma warning disable SA1313 // Parameter names should begin with lower-case letter | ||
internal record ListArtifactsRequest( | ||
[property: JsonPropertyName("workflow_run_backend_id")] | ||
string WorkflowRunBackendId, | ||
[property: JsonPropertyName("workflow_job_run_backend_id")] | ||
string WorkflowJobRunBackendId, | ||
[property: JsonPropertyName("name_filter")] | ||
string NameFilter = null, | ||
[property: JsonPropertyName("id_filter")] | ||
long? IdFilter = null); | ||
#pragma warning restore SA1313 // Parameter names should begin with lower-case letter | ||
} |
27 changes: 27 additions & 0 deletions
27
src/Cake.Common/Build/GitHubActions/Commands/Artifact/ListArtifactsResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for more information. | ||
|
||
using System; | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Cake.Common.Build.GitHubActions.Commands.Artifact | ||
{ | ||
#pragma warning disable SA1313 // Parameter names should begin with lower-case letter | ||
internal record ListArtifactsResponse( | ||
[property: JsonPropertyName("artifacts")] | ||
ListArtifactsResponse.MonolithArtifact[] Artifacts) | ||
{ | ||
internal record MonolithArtifact( | ||
[property: JsonPropertyName("workflow_run_backend_id")] | ||
string WorkflowRunBackendId, | ||
[property: JsonPropertyName("workflow_job_run_backend_id")] | ||
string WorkflowJobRunBackendId, | ||
[property: JsonPropertyName("database_id")] | ||
string DatabaseId, | ||
[property: JsonPropertyName("name")] | ||
string Name, | ||
[property: JsonPropertyName("created_at")] | ||
DateTimeOffset CreatedAt); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters