File tree Expand file tree Collapse file tree 2 files changed +52
-7
lines changed
Expand file tree Collapse file tree 2 files changed +52
-7
lines changed Original file line number Diff line number Diff line change 1+ name : Auto-retag UNTAGGED entries
2+
3+ # This workflow automatically fixes UNTAGGED entries and commits the changes
4+ # Trigger manually via workflow_dispatch or on push to specific branches
5+
6+ on :
7+ workflow_dispatch : # Manual trigger
8+ push :
9+ branches :
10+ - ' **' # All branches
11+
12+ permissions :
13+ contents : write
14+
15+ jobs :
16+ auto-retag :
17+ name : Automatically retag UNTAGGED entries
18+ runs-on : ubuntu-latest
19+
20+ # Only run if there are UNTAGGED entries
21+ steps :
22+ - name : Checkout code
23+ uses : actions/checkout@v4
24+ with :
25+ token : ${{ secrets.GITHUB_TOKEN }}
26+ ref : ${{ github.head_ref || github.ref }}
27+
28+ - name : Set up Python
29+ uses : actions/setup-python@v5
30+ with :
31+ python-version : ' 3.x'
32+
33+ - name : Run retag script
34+ run : python scripts/retag_untagged.py
35+
36+ - name : Commit and push changes
37+ run : |
38+ git config user.name "github-actions[bot]"
39+ git config user.email "github-actions[bot]@users.noreply.github.com"
40+ git add IdentityCore/src/telemetry/execution_flow/MSIDExecutionFlowConstants.m
41+ git commit -m "Auto-retag UNTAGGED execution flow tags"
42+ git push
43+
44+ - name : Retag script failed
45+ if : steps.check.outputs.has_untagged == 'true' && steps.retag.outcome == 'failure'
46+ run : |
47+ echo "::error::Retag script failed. Please run locally to debug: python scripts/retag_untagged.py"
48+ exit 1
49+
50+ - name : No changes needed
51+ if : steps.check.outputs.has_untagged == 'false'
52+ run : echo "All tags are already assigned. No action needed."
Original file line number Diff line number Diff line change 8787 script : |
8888 python ./scripts/update_xcode_config_cpp_checks.py
8989 failOnStderr : true
90- - task : Bash@3
91- displayName : Validate Execution FlowTags
92- inputs :
93- targetType : ' inline'
94- script : |
95- python ./scripts/validate_tags.py
96- failOnStderr : true
9790 - task : Bash@3
9891 displayName : Run Build script & check for Errors
9992 inputs :
You can’t perform that action at this time.
0 commit comments