-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathado-pipeline-yaml-pr-warning.yml
More file actions
36 lines (31 loc) · 1.35 KB
/
ado-pipeline-yaml-pr-warning.yml
File metadata and controls
36 lines (31 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Warn - Check ADO pipeline settings when PR updates ADO pipeline YAML
on:
pull_request:
paths:
- ".azdo/ci-pr.yaml"
permissions:
contents: read
jobs:
warn:
runs-on: ubuntu-latest
steps:
- name: Emit warning in logs
run: |
echo "::warning file=.azdo/ci-pr.yaml::This PR changes .azdo/ci-pr.yaml. After merge, Azure DevOps may disable/require approval for the PR pipeline YAML until it is re-enabled/approved."
echo "ADO pipeline: DV-Python-SDK-PullRequest (definitionId=29922)"
echo "https://dev.azure.com/dynamicscrm/OneCRM/_build?definitionId=29922"
- name: Add workflow summary
run: |
{
echo "## ADO PR pipeline YAML change detected"
echo ""
echo "**File changed:** \`.azdo/ci-pr.yaml\`"
echo ""
echo "**Why this matters:** After this is merged, Azure DevOps may disable/require approval for the PR pipeline YAML."
echo ""
echo "**Action required (post-merge):** Re-enable / approve the updated YAML for:"
echo "- **DV-Python-SDK-PullRequest** (definitionId=29922)"
echo "- https://dev.azure.com/dynamicscrm/OneCRM/_build?definitionId=29922"
echo ""
echo "Then trigger a run to confirm PR validation works."
} >> "$GITHUB_STEP_SUMMARY"