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

Commit a14fca6

Browse files
committed
Fix: Remove possibility to specify version via COMPOSER_NORMALIZE_VERSION
1 parent 2a94009 commit a14fca6

File tree

4 files changed

+6
-39
lines changed

4 files changed

+6
-39
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
88

99
For a full diff see [`0.6.0...master`][0.6.0...master].
1010

11+
### Changed
12+
13+
* Removed possibility to configure version of `ergebnis/composer-normalize` via `COMPOSER_NORMALIZE_VERSION` environment variable ([#62]), by [@localheinz]
14+
1115
## [`0.6.0`][0.6.0]
1216

1317
For a full diff see [`0.5.2...0.6.0`][0.5.2...0.6.0].
@@ -190,6 +194,7 @@ For a full diff see [`afa2393...0.1.0`][afa2393...0.1.0].
190194
[#50]: https://github.com/ergebnis/composer-normalize-action/pull/50
191195
[#57]: https://github.com/ergebnis/composer-normalize-action/pull/57
192196
[#59]: https://github.com/ergebnis/composer-normalize-action/pull/59
197+
[#62]: https://github.com/ergebnis/composer-normalize-action/pull/62
193198

194199
[@localheinz]: https://github.com/localheinz
195200
[@ergebnis]: https://github.com/localheinz

Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@ LABEL "maintainer"="Andreas Möller <[email protected]>"
77
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer
88

99
ENV COMPOSER_ALLOW_SUPERUSER=1
10-
ENV COMPOSER_NORMALIZE_VERSION_DEFAULT=2.1.2
1110

12-
RUN composer global require ergebnis/composer-normalize:$COMPOSER_NORMALIZE_VERSION_DEFAULT --no-interaction --no-progress --no-suggest
11+
RUN composer global require ergebnis/composer-normalize:2.1.2 --no-interaction --no-progress --no-suggest
1312

1413
ADD entrypoint.sh /entrypoint.sh
1514

README.md

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -116,39 +116,6 @@ Instead of using the latest pre-built Docker image, you can also specify a Docke
116116
+ uses: docker://ergebnis/composer-normalize-action:0.4.2
117117
```
118118

119-
### Environment Variables
120-
121-
If you wish to specify the version of [`ergebnis/composer-normalize`](https://github.com/ergebnis/composer-normalize) that should be used by the action, you can use the `COMPOSER_NORMALIZE_VERSION` environment variable:
122-
123-
```diff
124-
name: Continuous Integration
125-
126-
on: push
127-
128-
jobs:
129-
composer-normalize:
130-
name: composer-normalize
131-
132-
runs-on: ubuntu-latest
133-
134-
steps:
135-
- name: "Checkout"
136-
uses: actions/checkout@master
137-
138-
- name: composer-normalize-action
139-
uses: docker://ergebnis/composer-normalize-action:latest
140-
+ env:
141-
+ COMPOSER_NORMALIZE_VERSION: '^2.1.2'
142-
```
143-
144-
This value will be passed to [`entrypoint.sh`](entrypoint.sh) where it will be used for running
145-
146-
```
147-
$ composer global require ergebnis/composer-normalize:$COMPOSER_NORMALIZE_VERSION
148-
```
149-
150-
It can be any value that is understood by [`composer`](https://getcomposer.org/doc/articles/versions.md).
151-
152119
## Changelog
153120

154121
Please have a look at [`CHANGELOG.md`](CHANGELOG.md).

entrypoint.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
#!/bin/sh -l
22

3-
if [ -n "$COMPOSER_NORMALIZE_VERSION" ] && [ "$COMPOSER_NORMALIZE_VERSION" != "$COMPOSER_NORMALIZE_VERSION_DEFAULT" ]; then
4-
composer global require ergebnis/composer-normalize:"$COMPOSER_NORMALIZE_VERSION" --no-interaction --no-progress --no-suggest;
5-
fi
6-
73
if [ "$HOME" != '/root' ]; then
84
cp -r /root/.composer "$HOME"/.composer;
95
fi

0 commit comments

Comments
 (0)