feat(workflows): enable automatic deployment on push to main#12
Merged
Conversation
… recalculation script - Introduced DOCXSchemaValidator for validating Word document XML files against XSD schemas, including checks for whitespace preservation, deletions, insertions, and ID constraints. - Added PPTXSchemaValidator for validating PowerPoint presentation XML files, ensuring proper UUIDs, slide layout IDs, and unique notes slide references. - Created RedliningValidator to check for tracked changes in Word documents, ensuring changes by a specified author are properly tracked. - Developed a recalc.py script to recalculate Excel formulas using LibreOffice, providing detailed error summaries for any issues found during the process.
…#2020 - uncomment push trigger on branches: [main] in deploy workflow - retain workflow_dispatch for manual runs 🚀 - Generated by Copilot
Coverage Report for Coverage
File CoverageNo changed files found. |
| f' document.xml: commentRangeStart id="{comment_id}" has no matching commentRangeEnd' | ||
| ) | ||
|
|
||
| comment_ids = set() |
| if modified: | ||
| xml_file.write_bytes(dom.toxml(encoding="UTF-8")) | ||
|
|
||
| except Exception: |
| target_path = (rels_file.parent.parent / target).resolve() | ||
| try: | ||
| referenced.add(target_path.relative_to(unpacked_dir.resolve())) | ||
| except ValueError: |
| target_path = (rels_file.parent.parent / target).resolve() | ||
| try: | ||
| referenced.add(target_path.relative_to(unpacked_dir.resolve())) | ||
| except ValueError: |
| if rid and rid.startswith("rId"): | ||
| try: | ||
| max_rid = max(max_rid, int(rid[3:])) | ||
| except ValueError: |
| f" {xml_file.name}:{elem.sourceline}: " | ||
| f"durableId={val} >= 0x7FFFFFFF" | ||
| ) | ||
| except Exception: |
| if modified: | ||
| xml_file.write_bytes(dom.toxml(encoding="UTF-8")) | ||
|
|
||
| except Exception: |
| print(f"PASSED - No tracked changes by {self.author} found.") | ||
| return True | ||
|
|
||
| except Exception: |
| content_lines.append(line) | ||
| return "\n".join(content_lines) | ||
|
|
||
| except (subprocess.CalledProcessError, FileNotFoundError, Exception): |
| content = xml_file.read_text(encoding="utf-8") | ||
| dom = defusedxml.minidom.parseString(content) | ||
| xml_file.write_bytes(dom.toprettyxml(indent=" ", encoding="utf-8")) | ||
| except Exception: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Uncomments the push trigger on �ranches: [main] in the deploy workflow so that every merge to main automatically deploys the app to Azure.
Changes
ADO Work Items
Fixes AB#2020
Epic: #2018 — CI/CD Pipeline & Deployment Automation
Feature: #2019 — GitHub Actions Deployment Workflow
User Story: #2020 — Enable automatic deployment on push to main