-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathaction.yml
51 lines (49 loc) · 1.71 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
name: 'Upload build to Autify for Mobile'
description: 'Upload a build file to Autify for Mobile.'
author: 'Autify Inc.'
inputs:
access-token:
required: true
description: 'Access token of Autify for Mobile.'
workspace-id:
required: true
description: 'Workspace ID to upload the build file.'
build-path:
required: true
description: 'File path to the iOS app (*.app) or Android app (*.apk).'
autify-path:
required: false
default: 'autify'
description: 'A path to `autify` which will be used to invoke Autify CLI internally. Default is searching from PATH.'
autify-cli-installer-url:
required: false
default: "https://autify-cli-assets.s3.amazonaws.com/autify-cli/channels/stable/install-cicd.bash"
description: 'Autify CLI installer URL'
outputs:
exit-code:
description: 'Exit code of autify-cli. 0 means succeeded.'
value: ${{ steps.run.outputs.exit-code }}
build-id:
description: 'Returned build id on the workspace.'
value: ${{ steps.run.outputs.build-id }}
log:
description: 'Log of stdout and stderr.'
value: ${{ steps.run.outputs.log }}
runs:
using: 'composite'
steps:
- uses: autifyhq/actions-setup-cli@v2
with:
shell-installer-url: ${{ inputs.autify-cli-installer-url }}
# Only for integration tests.
- if: ${{ env.AUTIFY_CLI_INTEGRATION_TEST_INSTALL == '1' }}
run: autify-mobile-generate-fake-app
shell: bash
- id: run
run: $GITHUB_ACTION_PATH/script.bash
shell: bash
env:
INPUT_ACCESS_TOKEN: ${{ inputs.access-token }}
INPUT_BUILD_PATH: ${{ inputs.build-path }}
INPUT_WORKSPACE_ID: ${{ inputs.workspace-id }}
INPUT_AUTIFY_PATH: ${{ inputs.autify-path }}