Skip to content

Commit

Permalink
Update TriggerExtensionRelease.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
wangzelin007 committed Apr 1, 2024
1 parent 77380e9 commit 9c91501
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/TriggerExtensionRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ on:
permissions:
contents: read

# This is the only solution to trigger OneBranch pipeline from a GitHub commit。
# But it lacks batch CI support, we have to use concurrency to prevent earlier commits task overwriting index.json from later ones。
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency
concurrency:
group: trigger-extension-release

jobs:
build:
name: Trigger OneBranch ADO Pipeline (CI)
Expand All @@ -19,7 +25,6 @@ jobs:
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit

- name: Azure Pipelines Action
uses: Azure/pipelines@v1.2
with:
Expand All @@ -29,4 +34,6 @@ jobs:
# expire on 2024/9/21
azure-devops-token: ${{ secrets.ONE_BRANCH_TOKEN }}
# azure-pipeline-variables: '{"commit_id": "${{ github.sha }}"}'
azure-pipeline-variables: '{"commit_id": "cd149b7c50dbac2e3124ef1743a3270a727998ca"}'
azure-pipeline-variables: '{"commit_id": "cd149b7c50dbac2e3124ef1743a3270a727998ca"}'
- name: Wait for Extension Release
run: sleep 600

0 comments on commit 9c91501

Please sign in to comment.