Skip to content

Commit 5768fe6

Browse files
author
Greg Bowler
committed
Merge branch 'master' of github.com:php-actions/composer
2 parents 94796ef + 45afa1b commit 5768fe6

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

.github/main.workflow

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
workflow "Test exitcode for Composer commands" {
2+
on = "push"
3+
resolves = [
4+
"Test composer require"
5+
]
6+
}
7+
8+
action "Test composer require" {
9+
uses = "./"
10+
args = "require phpgt/webengine"
11+
}

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Use the Composer CLI in your Github Actions.

action.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: 'Composer (php-actions)'
2+
description: 'Use the Composer CLI in your Github Actions.'
3+
inputs:
4+
command:
5+
description: 'Composer command to run'
6+
required: true
7+
default: 'install'
8+
outputs:
9+
time:
10+
description: 'The time the action was run'
11+
runs:
12+
using: 'docker'
13+
image: 'Dockerfile'
14+
args:
15+
- ${{ inputs.command }}
16+
branding:
17+
icon: 'package'
18+
color: 'purple'

0 commit comments

Comments
 (0)