From 34d46698cdb3b22e84dabfc8f7006aba2be0f0fe Mon Sep 17 00:00:00 2001 From: ZelinWang Date: Mon, 25 Mar 2024 14:10:40 +0800 Subject: [PATCH] Create TriggerExtensionRelease.yml --- .github/workflows/TriggerExtensionRelease.yml | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/TriggerExtensionRelease.yml diff --git a/.github/workflows/TriggerExtensionRelease.yml b/.github/workflows/TriggerExtensionRelease.yml new file mode 100644 index 00000000000..c62d4195ed6 --- /dev/null +++ b/.github/workflows/TriggerExtensionRelease.yml @@ -0,0 +1,30 @@ +name: CI + +# Run this workflow every time a commit gets pushed to main +# This triggers the ADO OneBranch CI Pipeline +on: + push: + branches: + - main + +permissions: + contents: read + +jobs: + build: + name: Trigger OneBranch ADO Pipeline (CI) + runs-on: ubuntu-latest + steps: + - name: Harden Runner + uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0 + with: + egress-policy: audit + + - name: Azure Pipelines Action + uses: Azure/pipelines@v1 + with: + azure-devops-project-url: https://dev.azure.com/azclitools/internal + azure-pipeline-name: 'testOneBranchCLI-Official' + # https://learn.microsoft.com/en-us/azure/devops/organizations/accounts/use-personal-access-tokens-to-authenticate?view=azure-devops&tabs=Windows + # expire on 2024/9/21 + azure-devops-token: ${{ secrets.ONE_BRANCH_TOKEN }} \ No newline at end of file