Skip to content

Commit ebe7816

Browse files
committed
update
1 parent 9bd84a7 commit ebe7816

File tree

6 files changed

+90
-120
lines changed

6 files changed

+90
-120
lines changed

.copier-answers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Changes here will be overwritten by Copier
2-
_commit: v0.0.41-2-g01ccd8c
2+
_commit: v0.0.41-5-g077fbc8
33
_src_path: gh:LabAutomationAndScreening/copier-base-template.git
44
description: Copier template for creating Python libraries and executables
55
python_ci_versions:

.github/workflows/ci.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ on:
55
branches-ignore:
66
- 'gh-readonly-queue/**' # don't run (again) when on these special branches created during merge groups; the `on: merge_group` already triggers it.
77
merge_group:
8-
workflow_dispatch:
98

109
env:
1110
PYTHONUNBUFFERED: True
@@ -16,7 +15,14 @@ permissions:
1615
contents: write # needed for mutex
1716

1817
jobs:
18+
update-devcontainer-hash:
19+
if: ${{ github.actor == 'dependabot[bot]' }}
20+
uses: ./.github/workflows/update-devcontainer-hash.yaml
21+
with:
22+
branch: ${{ github.event.pull_request.head.ref }}
23+
1924
pre-commit:
25+
needs: [ update-devcontainer-hash ]
2026
strategy:
2127
fail-fast: false
2228
matrix:

.github/workflows/dependabot-post-update.yaml

Lines changed: 0 additions & 59 deletions
This file was deleted.
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Update Devcontainer hash
2+
on:
3+
workflow_call:
4+
inputs:
5+
branch:
6+
description: 'Branch to checkout and update'
7+
required: true
8+
type: string
9+
10+
permissions:
11+
contents: write
12+
13+
jobs:
14+
update-hash:
15+
runs-on: ubuntu-24.04
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4.2.2
19+
with:
20+
persist-credentials: true
21+
fetch-depth: 1
22+
ref: ${{ inputs.branch }}
23+
24+
- name: Configure Git author
25+
run: |
26+
git config user.name "github-actions[bot]"
27+
git config user.email "github-actions[bot]@users.noreply.github.com"
28+
29+
- name: Update devcontainer hash
30+
run: |
31+
python3 .github/workflows/hash_git_files.py . --for-devcontainer-config-update --exit-zero
32+
33+
- name: Commit & push changes
34+
run: |
35+
if ! git diff --quiet; then
36+
git add .
37+
git commit -m "chore: update devcontainer hash [dependabot skip]"
38+
git push origin HEAD:${{ inputs.branch }}
39+
else
40+
echo "No changes to commit"
41+
fi

template/.github/workflows/dependabot-post-update.yaml

Lines changed: 0 additions & 59 deletions
This file was deleted.
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Update Devcontainer hash
2+
on:
3+
workflow_call:
4+
inputs:
5+
branch:
6+
description: 'Branch to checkout and update'
7+
required: true
8+
type: string
9+
10+
permissions:
11+
contents: write
12+
13+
jobs:
14+
update-hash:
15+
runs-on: ubuntu-24.04
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4.2.2
19+
with:
20+
persist-credentials: true
21+
fetch-depth: 1
22+
ref: ${{ inputs.branch }}
23+
24+
- name: Configure Git author
25+
run: |
26+
git config user.name "github-actions[bot]"
27+
git config user.email "github-actions[bot]@users.noreply.github.com"
28+
29+
- name: Update devcontainer hash
30+
run: |
31+
python3 .github/workflows/hash_git_files.py . --for-devcontainer-config-update --exit-zero
32+
33+
- name: Commit & push changes
34+
run: |
35+
if ! git diff --quiet; then
36+
git add .
37+
git commit -m "chore: update devcontainer hash [dependabot skip]"
38+
git push origin HEAD:${{ inputs.branch }}
39+
else
40+
echo "No changes to commit"
41+
fi

0 commit comments

Comments
 (0)