Skip to content

Commit d2804d8

Browse files
authored
Merge pull request #3453 from SwissDataScienceCenter/release/v2.4.1
chore: release v2.4.1
2 parents 36beb22 + 8fd2669 commit d2804d8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+1380
-797
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ updates:
88
prefix: "build(deps): "
99
include: "scope"
1010
target-branch: "develop"
11-
open-pull-requests-limit: 0
1211
- package-ecosystem: "github-actions"
1312
directory: "/"
1413
schedule:

.github/workflows/acceptance-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
body-includes: "You can access the deployment of this PR at"
7777
- name: Create comment pre deploy
7878
if: steps.findcomment.outputs.comment-id == 0
79-
uses: peter-evans/create-or-update-comment@v2
79+
uses: peter-evans/create-or-update-comment@v3
8080
with:
8181
token: ${{ secrets.RENKUBOT_GITHUB_TOKEN }}
8282
issue-number: ${{ github.event.pull_request.number }}

.github/workflows/cheatsheet.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
if: "'refs/heads/master' != github.ref && 'refs/heads/develop' != github.ref && !startsWith(github.ref, 'refs/tags/')"
1414
steps:
15-
- uses: actions/[email protected].0
15+
- uses: actions/[email protected].2
1616
with:
1717
fetch-depth: 0
1818
- name: Install dependencies
Lines changed: 88 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,104 @@
11
name: "Combine Dependabot PRs"
22
on:
33
workflow_dispatch:
4+
inputs:
5+
target_branch:
6+
description: Target branch to create a release/PR to
7+
type: string
8+
required: true
9+
default: develop
10+
branch_name:
11+
description: Name of the branch to combine PRs into
12+
type: string
13+
required: true
14+
default: combined-prs-branch
415

516
jobs:
617
combine-prs:
718
runs-on: ubuntu-latest
819
steps:
9-
- uses: actions/checkout@v3.3.0
20+
- uses: actions/checkout@v3.5.2
1021
with:
1122
fetch-depth: 0
1223
token: "${{ secrets.RENKUBOT_GITHUB_TOKEN }}"
24+
ref: develop
1325
- name: Setup local branch and merge tool
1426
run: |
15-
git branch --track dependabot-updates origin/dependabot-updates
27+
git checkout -b "${{ inputs.branch_name }}" || ( git checkout "${{ inputs.branch_name }}" && git branch -u "origin/${{ inputs.branch_name }}" && git pull && git merge develop)
1628
echo "poetry.lock merge=ours" >> .git/info/attributes
1729
git config merge.ours.driver true
18-
- uses: mark-hingston/combine-dependabot-prs@main
30+
git merge --no-edit "origin/${{ inputs.target_branch }}"
31+
- name: Set up Python
32+
uses: actions/setup-python@v4
1933
with:
20-
branchPrefix: "dependabot"
21-
mustBeGreen: false
22-
combineBranchName: "combined-prs"
23-
includeLabel: ""
24-
ignoreLabel: "nocombine"
25-
baseBranch: "develop"
26-
openPR: true
27-
allowSkipped: false
28-
closeOnceCombined: true
29-
githubToken: "${{ secrets.RENKUBOT_GITHUB_TOKEN }}"
34+
python-version: 3.11
35+
- name: Install dependencies
36+
env:
37+
POETRY_VIRTUALENVS_CREATE: "false"
38+
shell: bash
39+
run: |
40+
python -m pip install --upgrade pip
41+
python -m pip install poetry
42+
- name: Set Git config
43+
shell: bash
44+
run: |
45+
git config --global --add user.name "Renku Bot"
46+
git config --global --add user.email "[email protected]"
47+
- name: Merge PRs
48+
id: merge_prs
49+
env:
50+
POETRY_VIRTUALENVS_CREATE: "false"
51+
run: |
52+
repo="https://api.github.com/repos/${{ github.repository }}"
53+
dependabot_pulls=($(curl -s "$repo/pulls?state=open" | jq -r ".[] | select((.head.ref | test(\"dependabot/\"))) | \"\(.head.ref),\(.number)\""))
54+
55+
pr_body="# Combined PRs\n✅ The following pull requests have been successfully combined on this PR:\n"
56+
failed=()
57+
58+
for branch in "${dependabot_pulls[@]}"; do
59+
branch_arr=(${branch//,/ })
60+
echo "Merging branch ${branch_arr[0]}"
61+
62+
if git merge --no-edit "origin/${branch_arr[0]}"; then
63+
pr_body="$pr_body\n- #${branch_arr[1]}"
64+
else
65+
git merge --abort
66+
git clean -fdx
67+
git reset --hard
68+
failed+=(${branch_arr[1]})
69+
fi
70+
done
71+
72+
if (( ${#failed[@]} )); then
73+
pr_body="$pr_body\n\nFailed to combine:\n"
74+
75+
for fail in "${failed[@]}"; do
76+
pr_body="$pr_body\n- #$fail"
77+
done
78+
fi
79+
poetry lock
80+
git add -A
81+
git commit -m "update lock file" --no-verify
82+
git status
83+
git push origin "${{ inputs.branch_name }}"
84+
echo "pr_body=$pr_body" >> $GITHUB_OUTPUT
85+
- name: Create Pull Request
86+
uses: actions/github-script@v6
87+
with:
88+
token: ${{ secrets.RENKUBOT_GITHUB_TOKEN }}
89+
script: |
90+
const { repo, owner } = context.repo;
91+
const result = await github.rest.pulls.create({
92+
title: 'chore: combined dependency update',
93+
owner,
94+
repo,
95+
head: '${{ inputs.branch_name }}',
96+
base: '${{ inputs.target_branch }}',
97+
body: '${{ steps.merge_prs.outputs.pr_body }}'
98+
});
99+
github.rest.issues.addLabels({
100+
owner,
101+
repo,
102+
issue_number: result.data.number,
103+
labels: ['dependencies', 'automated pr']
104+
});

.github/workflows/publish_shacl.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
build:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/[email protected].0
14+
- uses: actions/[email protected].2
1515
with:
1616
fetch-depth: 0
1717
- name: Install dependencies

.github/workflows/pypi-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
finalize-release:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v3.3.0
14+
- uses: actions/checkout@v3.5.2
1515
with:
1616
fetch-depth: 0
1717
token: "${{ secrets.RENKUBOT_GITHUB_TOKEN }}"

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
create-release-pr:
2222
runs-on: ubuntu-latest
2323
steps:
24-
- uses: actions/checkout@v3.3.0
24+
- uses: actions/checkout@v3.5.2
2525
with:
2626
fetch-depth: 0
2727
token: "${{ secrets.RENKUBOT_GITHUB_TOKEN }}"

.github/workflows/semantic_pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ jobs:
1010
main:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: amannn/action-semantic-pull-request@v5.1.0
13+
- uses: amannn/action-semantic-pull-request@v5.2.0
1414
env:
1515
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)