From 809767f2590a789fed9a51f05f67372c7b85345b Mon Sep 17 00:00:00 2001 From: sergiov-ni Date: Thu, 5 Dec 2024 20:25:46 -0600 Subject: [PATCH 1/5] no message --- .github/workflows/trigger-azure-pipeline.yml | 29 ++++++++++---------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/.github/workflows/trigger-azure-pipeline.yml b/.github/workflows/trigger-azure-pipeline.yml index 91eeb24..b8be5de 100644 --- a/.github/workflows/trigger-azure-pipeline.yml +++ b/.github/workflows/trigger-azure-pipeline.yml @@ -1,22 +1,18 @@ name: PR Triggered Tests on: - # Using pull_request_target so we can access secrets pull_request_target: types: [opened, synchronize, reopened] jobs: trigger-azure-pipeline: runs-on: ubuntu-latest - if: contains(github.event.pull_request.base.ref, 'develop') # optional: trigger only if PR is into main + if: contains(github.event.pull_request.base.ref, 'develop') steps: - name: Check if authorized to run tests id: check run: | - # Implement your logic here. For example, check PR labels using GitHub CLI: - # gh pr view ${{ github.event.pull_request.number }} --json labels - # if no label or unauthorized contributor, exit - # For simplicity, we just say we always trigger. In reality, add conditions. + # Add any conditions if necessary. For now, always allow. echo "ok=true" >> $GITHUB_OUTPUT - name: Trigger Azure DevOps Pipeline @@ -28,16 +24,17 @@ jobs: PIPELINE_ID="1" API_VERSION="6.0-preview.1" + # Ensure PAT is not empty + if [ -z "$PAT" ]; then + echo "AZURE_DEVOPS_PAT is not set or empty!" + exit 1 + fi + + # Base64 encode credentials AUTH=$(echo -n ":$PAT" | base64) - # We can specify a branch or a commit ref from the PR. Usually you'd run tests against the PR's branch. - # Since we're using pull_request_target, be careful with checking out code from PR. - # It's safer to just run pipeline against the PR's head commit reference retrieved from the event payload. + # Use the PR's head ref for the pipeline branch PR_HEAD_REF="${{ github.event.pull_request.head.ref }}" - REPO_NAME="${{ github.event.pull_request.head.repo.name }}" - # If your Azure DevOps pipeline is configured to use the same repo, specify it here: - # Ensure that your pipeline definition knows how to handle arbitrary refs. - JSON_BODY='{ "resources": { "repositories": { @@ -48,7 +45,11 @@ jobs: } }' - curl -s -X POST \ + echo "Triggering Azure DevOps pipeline with the following JSON:" + echo "$JSON_BODY" + + # Use --http1.1 to avoid HTTP/2 related issues, remove -s for verbosity + curl --http1.1 -v -X POST \ -H "Authorization: Basic $AUTH" \ -H "Content-Type: application/json" \ -d "$JSON_BODY" \ From dfa782980684de101011e5e4c48a9c0ee1d897cd Mon Sep 17 00:00:00 2001 From: sergiov-ni Date: Tue, 17 Dec 2024 15:40:12 -0700 Subject: [PATCH 2/5] Update Run unit tests and build.yml --- .github/workflows/Run unit tests and build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/Run unit tests and build.yml b/.github/workflows/Run unit tests and build.yml index 836b44a..0e817e7 100644 --- a/.github/workflows/Run unit tests and build.yml +++ b/.github/workflows/Run unit tests and build.yml @@ -16,7 +16,7 @@ jobs: build_id: ${{ github.run_number }} build_revision: ${{ steps.get_revision.outputs.build_revision }} build_version: 1.0.${{ env.build_id }}.${{ env.build_revision }} - RelativePath: ${{ github.workspace }} + RelativePath: ${{ vars.AgentRelativePath }} RelativePathScripts: ${{ github.workspace }}/pipeline/scripts steps: From fff18589000970a29c649dff7da0b5fe18c43d55 Mon Sep 17 00:00:00 2001 From: sergiov-ni Date: Tue, 17 Dec 2024 15:43:00 -0700 Subject: [PATCH 3/5] Update Run unit tests and build.yml --- .github/workflows/Run unit tests and build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/Run unit tests and build.yml b/.github/workflows/Run unit tests and build.yml index 0e817e7..0df7990 100644 --- a/.github/workflows/Run unit tests and build.yml +++ b/.github/workflows/Run unit tests and build.yml @@ -16,8 +16,8 @@ jobs: build_id: ${{ github.run_number }} build_revision: ${{ steps.get_revision.outputs.build_revision }} build_version: 1.0.${{ env.build_id }}.${{ env.build_revision }} - RelativePath: ${{ vars.AgentRelativePath }} - RelativePathScripts: ${{ github.workspace }}/pipeline/scripts + RelativePath: ${{ vars.AgentWorkingFolder }} + RelativePathScripts: ${{ vars.AgentWorkingFolder }}/pipeline/scripts steps: - name: Checkout code From fe4a80a6cdc9db68eae355aaf571729743aa3a2d Mon Sep 17 00:00:00 2001 From: sergiov-ni Date: Tue, 17 Dec 2024 15:54:40 -0700 Subject: [PATCH 4/5] Update Run unit tests and build.yml --- .github/workflows/Run unit tests and build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/Run unit tests and build.yml b/.github/workflows/Run unit tests and build.yml index 0df7990..982ce1d 100644 --- a/.github/workflows/Run unit tests and build.yml +++ b/.github/workflows/Run unit tests and build.yml @@ -21,7 +21,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v1 - name: Get Build Revision id: get_revision From 4f570123e12536c965ea2fd6084394d36dd197c2 Mon Sep 17 00:00:00 2001 From: Mark Balla Date: Thu, 19 Dec 2024 12:17:16 -0600 Subject: [PATCH 5/5] test commit --- Tooling/support/Add dev dist if present.vi | Bin 19119 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 Tooling/support/Add dev dist if present.vi diff --git a/Tooling/support/Add dev dist if present.vi b/Tooling/support/Add dev dist if present.vi deleted file mode 100644 index 584b15b3f0f884b0c78f6cf24e5dbd7e3e87e5da..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 19119 zcmeHP3ve98neLult#(%{d-bv;zcdoF!a|miA9r^4xFAbw;RV^2^}^VW$x6G96=X@Q zBx6_ZU;z~shvSGV2M0NW?-Ghiai%Z_6}XG*a6oW(*(CTVLwK0T_zZ+3oPAZ{Q4TBJ z_jk|C&aPInVi2KH9%*`dy8n0o-G5K_?6kJEHs-pSt+_L}p}C>+TE?!rf-&15V@ySU zA+G;e&SJPwfrBn~W@CV1W%V(|iz~;UGJ%6CjiY(nb8lYx@Y{|5`blEo#jU&k7v&zD z1ke8c#ko0;u049qp;vCS-~Pk7mB$zT&1-kFf3d$8bKUp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