Skip to content
This repository has been archived by the owner on Mar 6, 2021. It is now read-only.

Enhancement: Allow specifying the version of localheinz/composer-normalize #29

Merged
merged 1 commit into from
Aug 22, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ LABEL "maintainer"="Andreas Möller <[email protected]>"
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer

ENV COMPOSER_ALLOW_SUPERUSER=1
ENV COMPOSER_NORMALIZE_VERSION=1.3.0

RUN composer global require localheinz/composer-normalize:1.3.0
RUN composer global require localheinz/composer-normalize:$COMPOSER_NORMALIZE_VERSION

ADD entrypoint.sh /entrypoint.sh

Expand Down
8 changes: 8 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ description: 'Ensure your PHP project has a normalized composer.json.'

author: Andreas Möller

inputs:
composer-normalize-version:
description: 'The version of localheinz/composer-normalize you wish to use.'
required: false
default: '1.3.0'

runs:
using: 'docker'
image: 'docker://localheinz/composer-normalize-action'
env:
- COMPOSER_NORMALIZE_VERSION: '${{ inputs.composer-normalize-version }}'