-
-
Notifications
You must be signed in to change notification settings - Fork 56
/
action.yml
116 lines (96 loc) · 3.24 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
name: "Composer (php-actions)"
description: "Use the Composer CLI in your Github Actions."
inputs:
version:
description: "What version of Composer to use"
default: latest
required: false
php_version:
description: "What version of PHP to use"
default: latest
required: false
php_extensions:
description: "Space separated list of extensions to configure with the PHP build"
required: false
command:
description: "Composer command to run"
required: true
default: install
only_args:
description: "Only run the desired command with this args. Ignoring all other provided arguments"
required: false
interaction:
description: "Whether to ask any interactive questions. Values: 'yes' or 'no'"
required: false
default: no
dev:
description: "Whether to install dev packages. Values: 'yes' or 'no'"
required: false
default: yes
progress:
description: "Whether to output download progress"
required: false
default: no
quiet:
description: "Whether to suppress all messages"
required: false
default: no
args:
description: "Optional arguments to pass"
required: false
ssh_key:
description: "The private key contents to use for private repositories"
required: false
ssh_key_pub:
description: "The public key contents to use for private repositories"
required: false
ssh_domain:
description: "The domain to gather SSH public keys for (automatic for github.com, gitlab.com, bitbucket.org)"
required: false
ssh_port:
description: Custom port to use in conjunction with ssh_domain
required: false
working_dir:
description: "Use the given directory as working directory"
required: false
memory_limit:
description: "Sets the composer memory limit"
required: false
container_workdir:
description: "Sets the aplication workdir inside container"
required: false
outputs:
full_command:
description: "The full command passed to docker to run"
value: ${{ steps.composer_run.outputs.full_command }}
runs:
using: "composite"
steps:
- env:
ACTION_VERSION: ${{ inputs.version }}
ACTION_PHP_VERSION: ${{ inputs.php_version }}
ACTION_PHP_EXTENSIONS: ${{ inputs.php_extensions }}
ACTION_TOKEN: ${{ github.token }}
ACTION_COMMAND: ${{ inputs.command }}
ACTION_ONLY_ARGS: ${{ inputs.only_args }}
ACTION_INTERACTION: ${{ inputs.interaction }}
ACTION_DEV: ${{ inputs.dev }}
ACTION_PROGRESS: ${{ inputs.progress }}
ACTION_QUIET: ${{ inputs.quiet }}
ACTION_ARGS: ${{ inputs.args }}
ACTION_SSH_KEY: ${{ inputs.ssh_key }}
ACTION_SSH_KEY_PUB: ${{ inputs.ssh_key_pub }}
ACTION_SSH_DOMAIN: ${{ inputs.ssh_domain }}
ACTION_SSH_PORT: ${{ inputs.ssh_port }}
ACTION_WORKING_DIR: ${{ inputs.working_dir }}
ACTION_MEMORY_LIMIT: ${{ inputs.memory_limit }}
ACTION_CONTAINER_WORKDIR: ${{ inputs.container_workdir }}
id: composer_run
run: |
set -e
bash <(curl -s https://raw.githubusercontent.com/php-actions/php-build/v2/php-build.bash) composer
${{ github.action_path }}/composer-action.bash
shell: bash
branding:
icon: 'package'
color: 'purple'