File tree Expand file tree Collapse file tree 6 files changed +90
-120
lines changed
template/.github/workflows Expand file tree Collapse file tree 6 files changed +90
-120
lines changed Original file line number Diff line number Diff line change 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
44description : Copier template for creating Python libraries and executables
55python_ci_versions :
Original file line number Diff line number Diff line change 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
109env :
1110 PYTHONUNBUFFERED : True
@@ -16,7 +15,14 @@ permissions:
1615 contents : write # needed for mutex
1716
1817jobs :
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 :
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 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
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments