GitHub Actions: Continuous Delivery with Azure: confusing requirement of the production deployment trigger

Context
Continuous Delivery with Azure, Step 8: Write the production deployment trigger
and Step 9: Complete the deployment to production workflow
Expected behavior
In GitHub Actions: Continuous Delivery with Azure, after the learner completed Step 8 and Step 9, the workflow should get triggered and the webapp is expected to be deployed to Azure.

Actual behavior
It seems the on push trigger and the pull_request condition of the build job do not match.

The trigger is a push trigger, not a pull request trigger

on: 
  push:
    branches:
      - master

Meanwhile, the build job requires a pull request tagged with stage.

jobs:
  build:
    if: contains(github.event.pull_request.labels.*.name, 'stage')

The trigger and the job condition are mutual exclusive and as a result, the action is trigger but all the jobs are skipped.

@haokanga, thank you for bringing this to our attention. We’ll review this issue and address it accordingly.