forked from Quantarq/Quantara
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (30 loc) · 862 Bytes
/
Copy pathshared_workflow.yml
File metadata and controls
35 lines (30 loc) · 862 Bytes
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
name: Shared Setup Workflow
on:
workflow_call:
inputs:
python-version:
description: "The Python version to set up"
required: true
type: string
env-vars:
description: "Environment variables as a multi-line string"
required: false
type: string
jobs:
shared-setup:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: ${{ inputs.python-version }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
- name: Create .env file
if: ${{ inputs.env-vars != '' }}
run: |
echo "${{ inputs.env-vars }}" > .env