Skip to content

Commit

Permalink
feat: extract version with pattern using renovate regex manager (#26)
Browse files Browse the repository at this point in the history
This will allow extracting the version for a GitHub release tag, before
swapping the value, for example when the `v` prefix is undesired:

```yml
      - uses: hashicorp/[email protected]
        with:
          version: "1.10.0" # renovate: datasource=github-releases depName=hashicorp/packer extractVersion=v(?<version>.+)
```
  • Loading branch information
jooola authored May 29, 2024
1 parent 62885c3 commit 325d6c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion renovate/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"customType": "regex",
"fileMatch": ["^\\.github\\/(?:workflows|actions)\\/.+\\.ya?ml$"],
"matchStrings": [
"(?:version|VERSION): (?<currentValue>.+) # renovate: datasource=(?<datasource>[a-z-]+) depName=(?<depName>.+)(?: lookupName=(?<lookupName>.+))?(?: versioning=(?<versioning>[a-z-]+))?"
"(?:version|VERSION): (?<currentValue>.+) # renovate: datasource=(?<datasource>[a-z-]+) depName=(?<depName>.+)(?: lookupName=(?<lookupName>.+))?(?: versioning=(?<versioning>[a-z-]+))?(?: extractVersion=(?<extractVersion>.+))?"
]
}
]
Expand Down

0 comments on commit 325d6c7

Please sign in to comment.