-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (44 loc) · 1.27 KB
/
update_api_database.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
45
46
47
48
49
name: 🚀 Update API Database
on:
workflow_dispatch:
inputs:
api_name:
description: "Which API database to update"
type: choice
required: true
options:
- zoning-api
environment_name:
description: "Which environemnt to use"
type: choice
required: true
options:
- dev
- staging
- production
jobs:
run_update:
name: Run Update
runs-on: ubuntu-latest
environment:
name: ${{ inputs.environment_name }}
steps:
- uses: actions/checkout@v4
- name: Load Secrets
uses: 1password/load-secrets-action@v1
with:
export-env: true
env:
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
TOY_SECRET_1PASSWORD: "op://AE Data Flow/Toy Secret File/TOY_SECRET_LABEL"
- name: Setup python
uses: actions/setup-python@v5
with:
python-version-file: ".python-version"
- name: Health check
run: |
python --version
echo "Hello API Database update!"
echo "Using API Database: ${{ inputs.api_name }}"
echo "Using environment: ${{ inputs.environment_name }}"
echo "Toy Secret value: $TOY_SECRET_1PASSWORD"