thefrontside / playhouse

Frontside's Backstage Portal
https://backstage.frontside.services/
25 stars 13 forks source link

Allow passing a path to YAML actions #339

Closed taras closed 1 year ago

taras commented 1 year ago

Motivation

The original YAML actions were designed to change YAML documents using URLs from source location annotation. Modifying files from the file system without cloning the repository would be helpful.

Approach

Allow the url argument to be a relative or absolute path in addition to a regular url.

  1. Deletect if a URL in which case it executed previous logic
  2. When not a URL, for a relative path, calculate path by appending to the workspace directory
  3. When not a URL, for an absolute path, just read the file from the absolute path.
changeset-bot[bot] commented 1 year ago

🦋 Changeset detected

Latest commit: 6f6756dfefa954eedb56aa08db01f228fe09edba

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages | Name | Type | | ---------------------------------- | ----- | | backend | Patch | | @frontside/scaffolder-yaml-actions | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

frontsidejack commented 1 year ago

📣 NOTIFICATION You are receiving this message because we did not publish any packages.

Generated by @thefrontside/actions Frontside