File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -89,10 +89,18 @@ jobs:
89
89
with :
90
90
version : ${{ matrix.drupal }}
91
91
path : ~/drupal
92
+ - name : " set the version alias for self"
93
+ run : |
94
+ if [ "${{ github.event_name }}" == 'pull_request' ]; then
95
+ echo ::set-output name=VERSION_ALIAS::dev-"${{ github.sha }}"
96
+ else
97
+ echo ::set-output name=VERSION_ALIAS::dev-main
98
+ fi
99
+ id : branch_alias
92
100
- name : " require phpstan-drupal"
93
101
run : |
94
102
cd ~/drupal
95
- COMPOSER_MEMORY_LIMIT=-1 composer require mglaman/phpstan-drupal "dev- ${{ github.sha }} as 1.1.99" phpstan/extension-installer --with-all-dependencies
103
+ COMPOSER_MEMORY_LIMIT=-1 composer require mglaman/phpstan-drupal "${{ steps.branch_alias.outputs.VERSION_ALIAS }} as 1.1.99" phpstan/extension-installer --with-all-dependencies
96
104
cp $GITHUB_WORKSPACE/tests/fixtures/config/drupal-phpstan.neon phpstan.neon
97
105
- name : " Test core/install.php"
98
106
run : |
You can’t perform that action at this time.
0 commit comments