Skip to content

Create auto-extract-steps-from-codemagic-yaml.py#38

Open
odemolliens wants to merge 2 commits intodevelopfrom
feat/auto-extract-data-from-yaml
Open

Create auto-extract-steps-from-codemagic-yaml.py#38
odemolliens wants to merge 2 commits intodevelopfrom
feat/auto-extract-data-from-yaml

Conversation

@odemolliens
Copy link
Owner

@odemolliens odemolliens commented May 2, 2025

This script extracts script steps defined with anchors from a codemagic.yaml file
and exports each as a separate step.yml file in structured subfolders.
Usage:

  1. Place this script in the same directory as your codemagic.yaml.
  2. Ensure your codemagic.yaml contains script steps with anchors (e.g. - &build_step).
  3. Run the script with Python: python auto-extract-steps-from-codemagic-yaml.py.
  4. For each anchored step, a folder will be created at: steps_to_export/<anchor_name>/codemagic/step.yml.
    Each step.yml will include:
  • The name of the step
  • A fixed ignore_failure: true field
  • The script content from the original YAML
    Requirements:
  • Python 3
  • PyYAML (pip install pyyaml)
Screenshot 2025-05-02 at 17 12 07

@odemolliens odemolliens requested a review from imranMnts May 2, 2025 15:13
@odemolliens odemolliens self-assigned this May 2, 2025
@odemolliens odemolliens added the enhancement New feature or request label May 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant