-
Notifications
You must be signed in to change notification settings - Fork 261
Closed
Labels
featureA new feature or a feature requestA new feature or a feature request
Description
Feature Request
Description
Currently, when defining version variables with the version_variables configuration parameter, the versions in the specified files, have to be preceded by :, = or :=.
See
| r"\s*(:=|[:=])\s*", |
I would like to add the @ to the allowed separators, as it is used in gitHub actions ymls.
Use cases
I have a github repo (e.g. my-org/my-actions) containing multiple actions:
my-actions/.github/workflows/
action1.yml
action2.yml
combined.yml
action1.yml and action2.yml are both called by combinded.yml
on:
workflow_call:
jobs:
action1:
uses: my-org/my-actions/.github/workflows/[email protected]
action2:
uses: my-org/my-actions/.github/workflows/[email protected]
Currently there is no way for PSR to update the two versions in the combined.yml file.
Possible implementation
change line to r"\s*(:=@|[:=])\s*",
| r"\s*(:=|[:=])\s*", |
Metadata
Metadata
Assignees
Labels
featureA new feature or a feature requestA new feature or a feature request