Skip to content

Commit 5454eb2

Browse files
authored
Merge pull request #1055 from camptocamp/c2cciutils-upgrade
CI updates
2 parents 082c25c + 57deeea commit 5454eb2

5 files changed

+15
-88
lines changed

.github/renovate.json5

+7-7
Original file line numberDiff line numberDiff line change
@@ -65,22 +65,22 @@
6565
/** Docker images version */
6666
{
6767
matchDatasources: ['docker'],
68-
matchPackageNames: ['ghcr.io/osgeo/gdal'],
6968
versioning: 'regex:^(?<compatibility>.*)-(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)?$',
69+
matchDepNames: ['ghcr.io/osgeo/gdal'],
7070
},
7171
{
7272
matchDatasources: ['docker'],
73-
matchPackageNames: ['python'],
7473
versioning: 'regex:^(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)?$',
74+
matchDepNames: ['python'],
7575
},
7676
/** Group Poetry packages */
7777
{
78-
matchPackageNames: ['poetry', 'pip'],
7978
matchPackagePrefixes: ['poetry-'],
8079
groupName: 'Poetry',
8180
automerge: true,
8281
separateMajorMinor: false,
8382
separateMinorPatch: false,
83+
matchDepNames: ['poetry', 'pip'],
8484
},
8585
/** Accept only the patch on stabilization branches */
8686
{
@@ -90,27 +90,27 @@
9090
},
9191
/** Support the 4 parts of shellcheck-py version with a v prefix */
9292
{
93-
matchPackageNames: ['shellcheck-py/shellcheck-py'],
9493
versioning: 'regex:^v(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)\\.(?<build>\\d+)$',
94+
matchDepNames: ['shellcheck-py/shellcheck-py'],
9595
},
9696
/** Disable upgrading the supported Python version */
9797
{
9898
matchFileNames: ['pyproject.toml'],
99-
matchPackageNames: ['python'],
10099
enabled: false,
100+
matchDepNames: ['python'],
101101
},
102102
/** Only LTS version of Node */
103103
{
104104
allowedVersions: '/(0|2|4|6|8)$/',
105-
matchPackageNames: ['node'],
106105
enabled: false,
106+
matchDepNames: ['node'],
107107
},
108108
/** Group the Python update of the acceptance image */
109109
{
110110
matchFileNames: ['acceptance_tests/*'],
111-
matchPackageNames: ['python'],
112111
automerge: true,
113112
groupName: 'acceptance tests Python',
113+
matchDepNames: ['python'],
114114
},
115115
/** Group and auto merge the CI dependencies */
116116
{

.github/workflows/delete-old-workflows-run.yaml

-23
This file was deleted.

.github/workflows/main.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -113,3 +113,11 @@ jobs:
113113
- name: Publish
114114
run: c2cciutils-publish
115115
if: env.HAS_SECRETS == 'HAS_SECRETS'
116+
- run: git diff --exit-code --patch > /tmp/dpkg-versions.patch || true
117+
if: failure()
118+
- uses: actions/upload-artifact@v4
119+
with:
120+
name: Update dpkg versions list.patch
121+
path: /tmp/dpkg-versions.patch
122+
retention-days: 1
123+
if: failure()

.github/workflows/pr-checks.yaml

-29
This file was deleted.

.github/workflows/pull-request-automation.yaml

-29
Original file line numberDiff line numberDiff line change
@@ -86,32 +86,3 @@ jobs:
8686
&& startsWith(github.head_ref, 'dpkg-update/')
8787
&& (github.event.action == 'opened'
8888
|| github.event.action == 'reopened')
89-
- name: Auto review and merge snyk auto fix
90-
uses: actions/github-script@v7
91-
with:
92-
script: |-
93-
github.rest.pulls.createReview({
94-
owner: context.repo.owner,
95-
repo: context.repo.repo,
96-
pull_number: context.payload.pull_request.number,
97-
event: 'APPROVE',
98-
});
99-
github.graphql(`
100-
mutation {
101-
enablePullRequestAutoMerge(input: {
102-
pullRequestId: "${context.payload.pull_request.node_id}",
103-
mergeMethod: SQUASH,
104-
}) {
105-
pullRequest {
106-
autoMergeRequest {
107-
enabledAt
108-
}
109-
}
110-
}
111-
}
112-
`)
113-
if: |-
114-
github.event.pull_request.user.login == 'c2c-bot-gis-ci-2'
115-
&& startsWith(github.head_ref, 'snyk-fix/')
116-
&& (github.event.action == 'opened'
117-
|| github.event.action == 'reopened')

0 commit comments

Comments
 (0)