Repository navigation
Expand file tree
/
Copy pathaction.yml
More file actions
70 lines (70 loc) · 2.41 KB
/
Copy pathaction.yml
File metadata and controls
70 lines (70 loc) · 2.41 KB
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
name: 'AppImage Python'
description: 'Build AppImage packages from tar.gz archives'
author: 'Mate-Logic'
branding:
icon: activity
color: white
inputs:
version_url:
description: 'URL of tar.gz to download'
required: true
version_file:
description: 'File where is stored version string'
required: true
version_icon:
description: 'Name of the app icon'
required: true
version_sha256:
description: 'Expected SHA-256 digest of the downloaded tar.gz archive'
required: false
version_archive:
description: 'Optional local tar.gz archive to verify and build instead of downloading version_url'
required: false
version_directory:
description: 'If specific directory is required'
required: false
version_bash:
description: 'Adding regular expression if needed to get version string from version file'
required: false
version_check:
description: 'If the version of the app needs to be checked'
required: true
default: 'verify'
version_only:
description: 'If we need only version and then stop execution'
required: true
default: 'update'
update_information:
description: 'AppImage update information; auto uses the latest GitHub release, none disables it'
required: false
default: 'auto'
outputs:
app_update_needed:
value: ${{ steps.build.outputs.app_update_needed }}
description: 'Decision if the AppImage needs to be updated'
app_name:
value: ${{ steps.build.outputs.app_name }}
description: 'Application name'
app_short_name:
value: ${{ steps.build.outputs.app_short_name }}
description: 'Application short name'
app_version:
value: ${{ steps.build.outputs.app_version }}
description: 'Built application version'
runs:
using: "composite"
steps:
- id: build
run: python3 $GITHUB_ACTION_PATH/build.py
shell: bash
env:
INPUT_VERSION_URL: ${{ inputs.version_url }}
INPUT_VERSION_FILE: ${{ inputs.version_file }}
INPUT_VERSION_ICON: ${{ inputs.version_icon }}
INPUT_VERSION_SHA256: ${{ inputs.version_sha256 }}
INPUT_VERSION_ARCHIVE: ${{ inputs.version_archive }}
INPUT_VERSION_DIRECTORY: ${{ inputs.version_directory }}
INPUT_VERSION_BASH: ${{ inputs.version_bash }}
INPUT_VERSION_CHECK: ${{ inputs.version_check }}
INPUT_VERSION_ONLY: ${{ inputs.version_only }}
INPUT_UPDATE_INFORMATION: ${{ inputs.update_information }}