Skip to content

Commit

Permalink
add back posting version
Browse files Browse the repository at this point in the history
  • Loading branch information
adamhathcock committed May 15, 2024
1 parent c0c6843 commit 19fdf9e
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 35 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,15 @@ jobs:
VERSION: ${{ env.fullSemVer }}
run: ./build.ps1 build

- name: Pack
run: ./build.ps1 zip

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: output.zip
path: output/*.*
compression-level: 0 # no compression

- name: Trigger Build Installers
run: ./build.ps1 build-installers ${{ secrets.CONNECTORS_GH_TOKEN }} ${{ github.run_id }} ${{ env.fullSemVer }}
32 changes: 0 additions & 32 deletions Build/EnvFile.cs

This file was deleted.

4 changes: 2 additions & 2 deletions Build/Github.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ namespace Build;

public static class Github
{
public static async Task BuildInstallers(string token, string runId)
public static async Task BuildInstallers(string token, string runId, string version)
{
using var client = new HttpClient();
var payload = new { event_type = "build-installers", client_payload = new { run_id = runId } };
var payload = new { event_type = "build-installers", client_payload = new { run_id = runId, version } };
var content = new StringContent(
JsonSerializer.Serialize(payload),
new MediaTypeHeaderValue(MediaTypeNames.Application.Json)
Expand Down
3 changes: 2 additions & 1 deletion Build/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ IEnumerable<string> GetFiles(string d)
{
var token = arguments.First();
var runId = arguments.Skip(1).First();
await Github.BuildInstallers(token, runId).ConfigureAwait(false);
var version = arguments.Skip(2).First();
await Github.BuildInstallers(token, runId, version).ConfigureAwait(false);
}
);

Expand Down

0 comments on commit 19fdf9e

Please sign in to comment.