Skip to content

Commit 2149722

Browse files
authored
Try reusable get-values workflow (#38)
DRY stuff up
1 parent 77c225f commit 2149722

File tree

5 files changed

+36
-48
lines changed

5 files changed

+36
-48
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-22-gd7c5bcd
2+
_commit: v0.0.41-24-g20eac2f
33
_src_path: gh:LabAutomationAndScreening/copier-base-template.git
44
description: Copier template for creating Python libraries and executables
55
python_ci_versions:

.github/renovate.json5

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/workflows/ci.yaml

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,7 @@ permissions:
1717

1818
jobs:
1919
get-values:
20-
runs-on: ubuntu-24.04
21-
outputs:
22-
new-dependabot-sha: ${{ steps.update-hash.outputs.new-sha }}
23-
dependabot-commit-created: ${{ steps.update-hash.outputs.commit-created }}
24-
steps:
25-
- name: Checkout code
26-
uses: actions/[email protected]
27-
28-
- name: Update Devcontainer Hash
29-
if: ${{ github.actor == 'dependabot[bot]' }}
30-
id: update-hash
31-
uses: ./.github/actions/update-devcontainer-hash
32-
with:
33-
branch: ${{ github.ref_name }}
20+
uses: ./.github/workflows/get-values.yaml
3421

3522
pre-commit:
3623
needs: [ get-values ]

.github/workflows/get-values.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Get Values
2+
3+
on:
4+
workflow_call:
5+
outputs:
6+
new-dependabot-sha:
7+
description: BUILD_HASH
8+
value: ${{ jobs.get-values.outputs.new-dependabot-sha }}
9+
dependabot-commit-created:
10+
description: whether or not a commit was created on a dependabot branch
11+
value: ${{ jobs.get-values.outputs.dependabot-commit-created }}
12+
13+
env:
14+
PYTHONUNBUFFERED: True
15+
16+
permissions:
17+
contents: write # needed to push commit of new devcontainer hash for dependabot PRs
18+
19+
jobs:
20+
get-values:
21+
runs-on: ubuntu-24.04
22+
outputs:
23+
new-dependabot-sha: ${{ steps.update-hash.outputs.new-sha }}
24+
dependabot-commit-created: ${{ steps.update-hash.outputs.commit-created }}
25+
steps:
26+
- name: Checkout code
27+
uses: actions/[email protected]
28+
29+
- name: Update Devcontainer Hash
30+
if: ${{ github.actor == 'dependabot[bot]' }}
31+
id: update-hash
32+
uses: ./.github/actions/update-devcontainer-hash
33+
with:
34+
branch: ${{ github.ref_name }}

template/.github/renovate.json5.jinja

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)