Skip to content

Commit

Permalink
feat: add renovate regex for gha workflows version variable (#16)
Browse files Browse the repository at this point in the history
This should be able to match the following strings:
```yaml
jobs:
  lint:
    steps:
      - uses: golangci/golangci-lint-action@v3
        with:
          version: v1.55.1 # renovate: datasource=github-releases depName=golangci/golangci-lint
```
  • Loading branch information
jooola committed Nov 3, 2023
1 parent 566e095 commit 9791c58
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions renovate/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,13 @@
":semanticCommitScopeDisabled",
":semanticCommitTypeAll(deps)",
":enablePreCommit"
],
"regexManagers": [
{
"fileMatch": ["^\\.github\\/(?:workflows|actions)\\/.+\\.ya?ml$"],
"matchStrings": [
"^\\s+(?:[a-zA-Z-_]+)?(?:version|VERSION): (?<currentValue>.+?) # renovate: datasource=(?<datasource>[a-z-]+?) depName=(?<depName>.+?)(?: lookupName=(?<lookupName>.+?))?(?: versioning=(?<versioning>[a-z-]+?))?$"
]
}
]
}

0 comments on commit 9791c58

Please sign in to comment.