Skip to content

Commit fd525f3

Browse files
authored
Manage pip and npm install via renovate (#13207)
1 parent 162eb67 commit fd525f3

File tree

3 files changed

+27
-6
lines changed

3 files changed

+27
-6
lines changed

.github/renovate.json5

+22
Original file line numberDiff line numberDiff line change
@@ -216,5 +216,27 @@
216216
"matchUpdateTypes": ["major"],
217217
"enabled": false
218218
}
219+
],
220+
"customManagers": [
221+
{
222+
"customType": "regex",
223+
"datasourceTemplate": "pypi",
224+
"fileMatch": [
225+
"^.github/workflows/"
226+
],
227+
"matchStrings": [
228+
"pip install (?<depName>[^=]+)==(?<currentValue>[^\\s]+)"
229+
]
230+
},
231+
{
232+
"customType": "regex",
233+
"datasourceTemplate": "npm",
234+
"fileMatch": [
235+
"^.github/workflows/"
236+
],
237+
"matchStrings": [
238+
"npx (?<depName>[^@]+)@(?<currentValue>[^\\s]+)"
239+
]
240+
}
219241
]
220242
}

.github/workflows/release-update-cloudfoundry-index.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@ jobs:
2929
- name: create working branch
3030
run: git checkout -b opentelemetrybot/cloudfoundry-${{ github.run_number }}-${{ github.run_attempt }}
3131

32-
- run: sudo apt-get install jq python3-pip
33-
- run: pip install yq==3.4.2
32+
- name: install xq (which is part of yq)
33+
run: |
34+
sudo apt-get install jq python3-pip
35+
pip install yq==3.4.2
3436
3537
- name: update index.yml
3638
run: |

.github/workflows/reusable-markdown-lint-check.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1414

15-
- name: Install mardkdownlint
16-
run: npm install -g [email protected]
17-
1815
- name: Run markdownlint
1916
run: |
20-
markdownlint -c .markdownlint.yml -p .gitignore **/*.md -i licenses/licenses.md
17+
npx markdownlint[email protected] -c .markdownlint.yml -p .gitignore **/*.md -i licenses/licenses.md

0 commit comments

Comments
 (0)