Skip to content

Commit

Permalink
Add code-mirror workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mmitche committed May 1, 2024
1 parent be93330 commit 3a23b3d
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/code-mirror.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Code Mirror

on: [push]

permissions:
id-token: write # Permission to fetch OIDC token
contents: read

jobs:
build:
runs-on: ubuntu-latest

steps:
# Checkout the repo
- uses: actions/checkout@main
- uses: azure/login@v1
with:
client-id: ${{ secrets.CODE_MIRROR_CLIENT_ID }}
tenant-id: ${{ secrets.CODE_MIRROR_TENANT_ID }}
subscription-id: ${{ secrets.CODE_MIRROR_SUBSCRIPTION_ID }}

# Queue a code mirror build in azure devops
- name: Queue a build
run: |
az pipelines build queue --definition-id 16 --project internal --org dnceng --variables BranchToMirror=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} GitHubRepo=${{ github.repository_owner }}/${{ github.repository }}
- name: logout
run: |
az logout

0 comments on commit 3a23b3d

Please sign in to comment.