Skip to content

Commit

Permalink
Create TriggerExtensionRelease.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
wangzelin007 committed Mar 25, 2024
1 parent 2bbc4b4 commit 34d4669
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/TriggerExtensionRelease.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 34d4669

Please sign in to comment.