diff --git a/.github/workflows/dynamoAllNet6.0_build.yml b/.github/workflows/dynamoAllNet6.0_build.yml index 34c1d2a3ca1..c1775c560a3 100644 --- a/.github/workflows/dynamoAllNet6.0_build.yml +++ b/.github/workflows/dynamoAllNet6.0_build.yml @@ -31,3 +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: ${{ 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 }}", "run_id": "${{ github.run_id }}"}'