Skip to content

Commit 5937bab

Browse files
authored
Revert "Add support for pre/post composer commands (#67)" (#69)
This reverts commit 0bc2391.
1 parent 0ddc5e6 commit 5937bab

File tree

2 files changed

+0
-26
lines changed

2 files changed

+0
-26
lines changed

README.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -48,19 +48,6 @@ _to install dev dependencies:_
4848
args: analyse src/
4949
```
5050
51-
_to execute some command before and/or after composer install:_
52-
```diff
53-
uses: docker://oskarstark/phpstan-ga
54-
+ env:
55-
+ PRE_COMPOSER_COMMANDS:
56-
+ - composer config minimum-stability dev
57-
+ - composer config prefer-stable true
58-
+ POST_COMPOSER_COMMANDS:
59-
+ - composer outdated
60-
with:
61-
args: analyse src/
62-
```
63-
6451
_to skip checking the platform requirements:_
6552
```diff
6653
uses: docker://oskarstark/phpstan-ga

entrypoint.sh

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,8 @@ if [ "$REQUIRE_DEV" = "true" ]; then
1818
NO_DEV=""
1919
fi
2020

21-
if [ -z "$PRE_COMPOSER_COMMANDS" ]; then
22-
for str in ${PRE_COMPOSER_COMMANDS[@]}; do
23-
eval "$str"
24-
done
25-
fi
26-
2721
COMPOSER_COMMAND="composer install --no-progress $NO_DEV $IGNORE_PLATFORM_REQS"
2822
echo "::group::$COMPOSER_COMMAND"
29-
30-
if [ -z "$POST_COMPOSER_COMMANDS" ]; then
31-
for str in ${POST_COMPOSER_COMMANDS[@]}; do
32-
eval "$str"
33-
done
34-
fi
35-
3623
$COMPOSER_COMMAND
3724
echo "::endgroup::"
3825
/composer/vendor/bin/phpstan $*

0 commit comments

Comments
 (0)