Skip to content

Commit

Permalink
Merge pull request #9240 from camptocamp/c2cciutils-upgrade
Browse files Browse the repository at this point in the history
CI updates
  • Loading branch information
sbrunner authored Oct 11, 2023
2 parents 8e03264 + 6883798 commit 78676ce
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 41 deletions.
17 changes: 5 additions & 12 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -13,30 +13,23 @@
'pre-commit': {enabled: true},
regexManagers: [
{
fileMatch: ['^.pre-commit-config.yaml$'],
fileMatch: ['^\\.pre\\-commit\\-config\\.yaml$'],
matchStrings: [" +- '?(?<depName>[^' @=]+)(@|==)(?<currentValue>[^' @=]+)'? # (?<datasource>.+)"],
},
{
fileMatch: ['^ci/applications-versions.yaml$'],
fileMatch: ['^ci/applications\\-versions\\.yaml$'],
matchStrings: ['(?<depName>[^\\s]+): (?<currentValue>[^\\s]+) # (?<datasource>[^\\s]+)'],
},
{
fileMatch: ['^.github/workflows/main.yaml$'],
fileMatch: ['^.github/workflows/main\\.yaml$'],
matchStrings: ["node-version: '(?<currentValue>[^\\s]+).x'"],
depNameTemplate: 'node',
datasourceTemplate: 'node',
},
{
'fileMatch': ['^ci/config\\\\.yaml$'],
'fileMatch': ['^ci/config\\.yaml$'],
'matchStrings': [
'.*https://raw\\\\.githubusercontent\\\\.com/(?<depName>[^\\\\s]+)/(?<currentValue>[0-9\\\\.]+)/.*',
],
'datasourceTemplate': 'github-tags',
},
{
'fileMatch': ['^ci/config\\\\.yaml$'],
'matchStrings': [
'.*https://raw\\\\.githubusercontent\\\\.com/(?<depName>[^\\\\s]+)/(?<currentValue>[0-9\\\\.]+)/.*',
'.*https://raw\\.githubusercontent\\.com/(?<depName>[^\\s]+)/(?<currentValue>[0-9\\.]+)/.*',
],
'datasourceTemplate': 'github-tags',
},
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/backport.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
name: Backport

on:
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/dependency-auto-review.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Auto reviews updates

on:
pull_request:
types:
- opened
- reopened

jobs:
auto-merge:
name: Auto reviews updates
runs-on: ubuntu-22.04
timeout-minutes: 5

steps:
- uses: actions/github-script@v6
with:
script: |-
github.rest.pulls.createReview({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.payload.pull_request.number,
event: 'APPROVE',
})
if: github.event.pull_request.user.login == 'renovate[bot]'
22 changes: 0 additions & 22 deletions .github/workflows/dependency-update-review.yaml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ jobs:
- run: pre-commit run --all-files
- run: git diff && false
if: failure()
- name: Checks
run: c2cciutils-checks
- name: Print environment information
run: c2cciutils-env

- run: |
sudo rm /etc/apt/sources.list.d/*.list
Expand Down
4 changes: 0 additions & 4 deletions ci/config.yaml

This file was deleted.

0 comments on commit 78676ce

Please sign in to comment.