-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
49 lines (42 loc) · 1.16 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
name: Run Swift command-line application
description: This action executes a Swift command-line application
author: 'Asiel Cabrera'
inputs:
myInput:
description: 'Description of the myInput entry'
required: true
default: 'Default value for myInput'
optionalInput:
description: 'Description of the optionalInput entry'
required: false
default: 'Default value for optionalInput'
name:
required: true
outputs:
myOutput:
description: 'Description of the myOutput output'
runs:
using: 'composite'
steps:
- name: Install Swift
run: |
sudo apt-get update
sudo apt-get install swift
shell: bash
- name: Clone repository
run: |
git clone https://github.com/asielcabrera/Test_Github_Action.git
shell: bash
- name: Compile and execute
id: comandexec
env:
INPUT_NAME: ${{ inputs.name }}
INPUT_MYINPUT: ${{ inputs.myInput }}
run: |
cd Test_Github_Action
swift build
swift run
shell: bash
- name: test output
run: echo ${{ steps.comandexec.outputs.myOutput }}
shell: bash