From da4cc6763db2499f72772586addec9d02962ce4c Mon Sep 17 00:00:00 2001 From: Aabishkar KC Date: Thu, 12 Oct 2023 09:53:00 -0400 Subject: [PATCH 1/3] DYN-6292 Upload artifact after build --- .github/workflows/dynamoAllNet6.0_build.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/dynamoAllNet6.0_build.yml b/.github/workflows/dynamoAllNet6.0_build.yml index 34c1d2a3ca1..2bf707aaf33 100644 --- a/.github/workflows/dynamoAllNet6.0_build.yml +++ b/.github/workflows/dynamoAllNet6.0_build.yml @@ -31,3 +31,9 @@ jobs: cd "$Env:GITHUB_WORKSPACE\Dynamo\bin\AnyCPU\Release" echo "***Locating DynamoCLI for Windows!***" test ".\DynamoCLI.exe" && echo "DynamoCLI exists!" + - name: Upload Artifact + uses: actions/upload-artifact@v3 + with: + name: DynamoSandbox + path: $env:GITHUB_WORKSPACE\Dynamo\bin\AnyCPU\Release + if-no-files-found: warn From eb4df51ec7d9117527fe731b8084a803b094aa46 Mon Sep 17 00:00:00 2001 From: Aabishkar KC Date: Tue, 17 Oct 2023 12:45:27 -0400 Subject: [PATCH 2/3] DYN-6292 Update build workflow --- .github/workflows/dynamoAllNet6.0_build.yml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dynamoAllNet6.0_build.yml b/.github/workflows/dynamoAllNet6.0_build.yml index 2bf707aaf33..f2f62f3ea59 100644 --- a/.github/workflows/dynamoAllNet6.0_build.yml +++ b/.github/workflows/dynamoAllNet6.0_build.yml @@ -31,9 +31,24 @@ jobs: cd "$Env:GITHUB_WORKSPACE\Dynamo\bin\AnyCPU\Release" echo "***Locating DynamoCLI for Windows!***" test ".\DynamoCLI.exe" && echo "DynamoCLI exists!" + - name: Set artifact name + run: | + if ("${{ github.event_name }}" -eq 'pull_request') { + echo "ARTIFACT_NAME=DynamoSandbox-${{ github.event.pull_request.number }}" >> $env:GITHUB_ENV + } else { + echo "ARTIFACT_NAME=DynamoSandbox-$(git rev-parse --short HEAD)" >> $env:GITHUB_ENV + } - name: Upload Artifact uses: actions/upload-artifact@v3 with: - name: DynamoSandbox - path: $env:GITHUB_WORKSPACE\Dynamo\bin\AnyCPU\Release + name: ${{ env.ARTIFACT_NAME }} + path: ${{ github.workspace }}\Dynamo\bin\AnyCPU\Release if-no-files-found: warn + retention-days: 3 + - name: Repository Dispatch + uses: peter-evans/repository-dispatch@v2 + with: + token: ${{ secrets.DYNAMO_TESTS_TOKEN }} + repository: DynamoDS/TestCompleteTests + event-type: build-completed + client-payload: '{"artifact_name": "${{ env.ARTIFACT_NAME }}"}' From 7cff740ab32535a5c92a33f11ba89f014c6bb159 Mon Sep 17 00:00:00 2001 From: Aabishkar KC Date: Tue, 17 Oct 2023 14:46:56 -0400 Subject: [PATCH 3/3] DYN-6292 Update build workflow --- .github/workflows/dynamoAllNet6.0_build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dynamoAllNet6.0_build.yml b/.github/workflows/dynamoAllNet6.0_build.yml index f2f62f3ea59..c1775c560a3 100644 --- a/.github/workflows/dynamoAllNet6.0_build.yml +++ b/.github/workflows/dynamoAllNet6.0_build.yml @@ -51,4 +51,4 @@ jobs: token: ${{ secrets.DYNAMO_TESTS_TOKEN }} repository: DynamoDS/TestCompleteTests event-type: build-completed - client-payload: '{"artifact_name": "${{ env.ARTIFACT_NAME }}"}' + client-payload: '{"artifact_name": "${{ env.ARTIFACT_NAME }}", "run_id": "${{ github.run_id }}"}'