-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (44 loc) · 1.05 KB
/
step.yml
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
name: Run step
on:
workflow_call:
inputs:
name:
required: true
type: string
run:
required: true
type: string
secrets:
AWS_ACCESS_KEY_ID:
required: true
AWS_SECRET_ACCESS_KEY:
required: true
MAIL_USERNAME:
required: true
MAIL_PASSWORD:
required: true
MAIL_TO:
required: false
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: us-east-1
MAIL_FROM: ${{ secrets.MAIL_USERNAME }}
MAIL_PSWD: ${{ secrets.MAIL_PASSWORD }}
MAIL_TO: ${{ secrets.MAIL_TO }}
jobs:
run:
name: ${{ inputs.name }}
runs-on: ubuntu-latest
steps:
- name: Clone repo
uses: actions/checkout@v4
- name: Setup Python 3.11.8
uses: actions/setup-python@v5
with:
python-version: 3.11.8
cache: pip
- name: Install pip deps
run: pip install -e .
- name: ${{ inputs.name }}
run: ${{ inputs.run }}