forked from Appdynamics/jekyll-rtd-theme
-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
75 lines (69 loc) · 2.11 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
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
75
name: Docker Deploy Action
description: >
🪂 A Github Action to deploy pages
branding:
icon: 'command'
color: 'yellow'
inputs:
docker_hub_username:
description: Username for Docker Hub
default: ${{ github.actor }}
required: false
docker_hub_password:
description: Docker Hub password
required: true
docker_hub_token:
description: Docker Hub authentication token
required: true
initiate_pauli_sum:
description: Build args
required: false
default: ""
image_name:
description: Tag to use for the new image
default: ${{ github.action_repository }}
required: true
credentials:
description: The Google cloud credentials
required: true
token:
description: The Github personal token
required: true
base:
description: The path to .github folder
required: true
id:
description: The id according to os
required: true
outputs:
addition:
description: Collect addition outputs
value: ${{ inputs.id == 1 && steps.addition.outputs.artifact }}
multiplication:
description: Collect multiplication outputs
value: ${{ toJSON(steps.multiplication.outputs) }}
runs:
using: composite
steps:
- name: Target Configuration
uses: eq19/eq19/.github/actions/1-addition/2-feed@v1
if: inputs.id == 1
id: addition
with:
hub_username: ${{ inputs.docker_hub_username }}
hub_password: ${{ inputs.docker_hub_password }}
hub_token: ${{ inputs.docker_hub_token }}
credentials: ${{ inputs.credentials }}
action_path: ${{ github.action_path }}
image_name: ${{ inputs.image_name }}
token: ${{ inputs.token }}
- name: Profiling Feedback
uses: eq19/eq19/.github/actions/2-multiplication/2-feed@v1
if: inputs.id == 2
id: multiplication
with:
token: ${{ inputs.token }}
image_name: ${{ inputs.image_name }}
action_path: ${{ github.action_path }}
hub_token: ${{ inputs.docker_hub_token }}
hub_username: ${{ inputs.docker_hub_username }}