@samitouri / QOSAMI-WSL / commits / 3ce6f267

Added gh-sync action

Craig Loewen committed Apr 20, 2022 at 15:10 UTC 3ce6f267176e88367a5b506e4445535ba3100ec7
1 file changed +23
.github/workflows/gh-sync.yml new
+23
@@ -0,0 +1,23 @@
1 +name: Sync GitHub with ADO
2 +
3 +on:
4 + issues:
5 + types: [closed, edited, deleted, reopened, assigned, unassigned, labeled, unlabeled]
6 + issue_comment:
7 +
8 +jobs:
9 + build:
10 + name: Run gh-sync from GitHub action
11 + if: ${{ github.event.label.name == 'tracking' || contains(github.event.issue.labels.*.name, 'tracking') }} # Filters out issues/events without the 'tracking' label
12 + runs-on: ubuntu-latest
13 + steps:
14 + - name: 'Trigger gh-sync'
15 + uses: microsoft/gh-sync@main
16 + with:
17 + ado-organization-url: ${{ secrets.AZURE_DEVOPS_URL }}
18 + ado-project: ${{ secrets.AZURE_DEVOPS_PROJECT }}
19 + ado-area-path: ${{ secrets.AZURE_DEVOPS_PATH }}
20 + github-repo: 'microsoft/WSL'
21 + issue-number: ${{github.event.issue.number}} # Auto-generated from GitHub action
22 + ado-token: ${{ secrets.AZURE_DEVOPS_TOKEN }} # Your Personal Access Token (PAT)
23 + github-token: ${{ secrets.GITHUB_TOKEN }} # Auto-generated from GitHub action
\ No newline at end of file