-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
45 lines (36 loc) · 1.42 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
---
# Documentation References:
# - Creating a Composite Action: https://docs.github.com/en/actions/creating-actions/creating-a-composite-action
# - Metadata Syntax for Inputs: https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#inputs
# - Runs for Composite Actions: https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#runs-for-composite-run-steps-actions
# - Phar documentation: https://phar.io
# - Other Implementations: https://github.com/ergebnis/.github/blob/main/actions
name: 📥 Phive install
description: Installs dependencies with phive
inputs:
phive-home:
default: '.build/phive'
description: 'Which directory to use as PHIVE_HOME directory'
required: false
trust-gpg-keys:
default: ''
description: 'A comma-separated list of trusted GPG keys'
required: true
runs:
using: 'composite'
steps:
- name: 🗂️ Create phive home directory
run: mkdir -p ${{ inputs.phive-home }}
shell: bash
- name: ♻️ Cache dependencies installed with phive
uses: actions/[email protected]
with:
path: ${{ inputs.phive-home }}
key: phive-${{ hashFiles('**/phars.xml') }}
restore-keys: phive-
- name: ⚙️ Install dependencies with phive
env:
PHIVE_HOME: ${{ inputs.phive-home }}
run: phive install --trust-gpg-keys ${{ inputs.trust-gpg-keys }}
shell: bash
...