-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathaction.yaml
29 lines (24 loc) · 1.05 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#composer-root-version
name: "Determine composer root version"
description: "Determines the composer root version and exports it as COMPOSER_ROOT_VERSION environment variable"
inputs:
branch:
default: "main"
description: "Name of the branch, e.g. \"main\""
required: true
working-directory:
default: "."
description: "Which directory to use as working directory"
required: true
runs:
using: "composite"
steps:
- name: "Determine composer root version"
env:
COMPOSER_DETERMINE_ROOT_VERSION_BRANCH: "${{ inputs.branch }}"
COMPOSER_DETERMINE_ROOT_VERSION_WORKING_DIRECTORY: "${{ inputs.working-directory }}"
run: "${{ github.action_path }}/run.sh"
shell: "bash"