forked from Azure/azure-cli-extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (31 loc) · 1.12 KB
/
TriggerExtensionRelease.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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:
- task: NodeTool@0
inputs:
versionSpec: '20'
checkLatest: true
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit
- name: Azure Pipelines Action
uses: Azure/pipelines@v1.2
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 }}
azure-pipeline-variables: '{"variable1": "${{ github.sha }}"}'