-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
36 lines (35 loc) · 1.29 KB
/
action.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
name: Integrate Shipyard
description: Securely auth into Shipyard-generated environments so you can test before merge.
inputs:
api-token:
description: Shipyard API token used to fetch necessary environment variables from Shipyard.
required: true
timeout-minutes:
description: Number of minutes to wait for Shipyard environment before timing out.
required: false
app-name:
description: Filter the environment by name of the application on the Shipyard app.
required: false
runs:
using: composite
steps:
- name: Install Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install Dependencies
run: pip install -r $GITHUB_ACTION_PATH/src/requirements.txt > /dev/null
shell: bash
# Pass inputs via shell until https://github.com/actions/runner/issues/665 resolved
- name: Pass Inputs to Shell
run: |
echo "INPUT_API_TOKEN=${{ inputs.api-token }}" >> $GITHUB_ENV
echo "INPUT_TIMEOUT_MINUTES=${{ inputs.timeout-minutes }}" >> $GITHUB_ENV
echo "INPUT_APP_NAME=${{ inputs.app-name }}" >> $GITHUB_ENV
shell: bash
- name: Authenticate into Shipyard
run: python $GITHUB_ACTION_PATH/src/fetch_shipyard_env.py
shell: bash
branding:
icon: git-pull-request
color: blue