-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathaction.yaml
29 lines (24 loc) · 1.04 KB
/
action.yaml
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
# https://docs.github.com/en/actions/creating-actions/creating-a-composite-action
# https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#inputs
# https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#runs-for-composite-run-steps-actions
# https://getcomposer.org/doc/03-cli.md#install-i
name: "Install dependencies with composer"
description: "Installs dependencies with composer"
inputs:
dependencies:
default: "locked"
description: "Which dependencies to install, one of \"lowest\", \"locked\", \"highest\""
required: true
working-directory:
default: "."
description: "Which directory to use as working directory"
required: true
runs:
using: "composite"
steps:
- name: "Install ${{ inputs.dependencies }} dependencies with composer"
env:
COMPOSER_INSTALL_DEPENDENCIES: "${{ inputs.dependencies }}"
COMPOSER_INSTALL_WORKING_DIRECTORY: "${{ inputs.working-directory }}"
run: "${{ github.action_path }}/run.sh"
shell: "bash"