-
Notifications
You must be signed in to change notification settings - Fork 10
74 lines (70 loc) · 2.59 KB
/
Copy pathshared-config.yml
File metadata and controls
74 lines (70 loc) · 2.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: Shared Configuration
on:
workflow_call:
outputs:
python-versions:
description: 'JSON array of Python versions'
value: ${{ jobs.get-config.outputs.python-versions }}
default-python-version:
description: 'Default Python version'
value: ${{ jobs.get-config.outputs.default-python-version }}
container-registry:
description: 'Container registry'
value: ${{ jobs.get-config.outputs.container-registry }}
container-image:
description: 'Container image name'
value: ${{ jobs.get-config.outputs.container-image }}
package-version:
description: 'Package version'
value: ${{ jobs.get-config.outputs.package-version }}
is-release:
description: 'Whether this is a release build'
value: ${{ jobs.get-config.outputs.is-release }}
aws-region:
description: 'AWS region for testing'
value: ${{ jobs.get-config.outputs.aws-region }}
aws-access-key:
description: 'AWS access key for testing'
value: ${{ jobs.get-config.outputs.aws-access-key }}
aws-secret-key:
description: 'AWS secret key for testing'
value: ${{ jobs.get-config.outputs.aws-secret-key }}
environment:
description: 'Environment name'
value: ${{ jobs.get-config.outputs.environment }}
testing-flag:
description: 'Testing flag'
value: ${{ jobs.get-config.outputs.testing-flag }}
jobs:
get-config:
name: Get Configuration
runs-on: ubuntu-latest
permissions:
contents: read
outputs:
python-versions: ${{ steps.config.outputs.python-versions }}
default-python-version: ${{ steps.config.outputs.default-python-version }}
container-registry: ${{ steps.config.outputs.container-registry }}
container-image: ${{ steps.config.outputs.container-image }}
package-version: ${{ steps.config.outputs.package-version }}
is-release: ${{ steps.config.outputs.is-release }}
aws-region: us-east-1
aws-access-key: testing
aws-secret-key: testing
environment: testing
testing-flag: "true"
steps:
- name: Checkout code
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Setup cache
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v5
with:
path: |
~/.cache/uv
.venv
key: config-${{ hashFiles('.project.yml', 'pyproject.toml') }}
restore-keys: |
config-
- name: Get project configuration
id: config
uses: ./.github/actions/get-config