Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Pass variables and set commit status #662

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 14 additions & 4 deletions .github/workflows/hosted-notebook-samples-check.yml
Expand Up @@ -4,17 +4,27 @@ on:
pull_request:
branches:
- feature/samples-gallery
workflow_dispatch:

env:
pipelineVars: '{''qcHash'': ''${{ github.sha }}'', ''githubRepo'': ''${{ github.repository }}'', ''prCommitHash'': ''${{ github.event.pull_request.head.sha }}'', ''isGithubPrBuild'': ''true'' }'

jobs:
build:
name: Call Azure Pipeline
runs-on: ubuntu-latest
steps:
- name: Azure Pipelines Action
uses: Azure/pipelines@v1
uses: Azure/pipelines@v1.2
with:
azure-devops-project-url: ${{ secrets.QUANTUM_PROGRAM_ADO_URL }}
azure-pipeline-name: ${{ secrets.HOSTED_NOTEBOOKS_PIPELINE_NAME }}
azure-devops-token: ${{ secrets.HOSTED_NOTEBOOKS_PIPELINE_ADO_PAT }}
azure-pipeline-variables: '{"Quantum Computing Samples Commit Hash": "$GITHUB_SHA"}'
azure-pipeline-variables: ${{ env.pipelineVars }}
- name: Set status to pending
run: |
curl \
-X POST \
-H "Accept: application/json" \
-u achocron:${{ secrets.GITHUB_TOKEN }} https://api.github.com/repos/${{ github.repository }}/statuses/${{ github.event.pull_request.head.sha }} \
-d '{"state":"pending", "description": "Triggering Notebook Samples E2E Test"}'