Knowledge check

Completed

The R&D team at your toy company has asked you to help them with their workflow definition. Here's the YAML file:

on:
  push:
    branches:
      - main
    paths:
      - 'deploy/**'

name: AzureBicepSample

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
    - uses: azure/login@v1
      with:
        client-id: ${{ secrets.AZURE_CLIENT_ID }}
        tenant-id: ${{ secrets.AZURE_TENANT_ID }}
        subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
    - uses: azure/arm-deploy@v1
      with:
        resourceGroupName: ${{ env.AZURE_RESOURCEGROUP_NAME }}
        template: ./deploy/main.bicep
        parameters: environmentType=${{ env.ENVIRONMENT }}

When you execute your workflow, you get the following error message:

ERROR: An error occurred reading file. Could not find a part of the path '/home/runner/work/myrepo/myrepo/deploy/main.bicep'.
1.

What should you do to fix this error?

2.

Which of these situations will trigger the R&D team's workflow to run?

3.

Which of the following statements is true?