Skip to content

Commit 1b272bc

Browse files
authored
Merge pull request #46 from didoda/fix/php-unit-run-id-in-file-prefix
Fix github.run_id in FILE_PREFIX
2 parents 547ecc5 + 6bcb1c6 commit 1b272bc

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/php-cs-stan-unit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ jobs:
154154
run: 'composer dump-autoload --classmap-authoritative --no-cache'
155155

156156
- name: 'Set file prefix in environment'
157-
run: echo "FILE_PREFIX=${{ inputs.bedita_version }}-${{ matrix.php-version }}-${{ strategy.job-index }}" >> $GITHUB_ENV
157+
run: echo "FILE_PREFIX=${{ github.run_id }}-${{ inputs.bedita_version }}-${{ matrix.php-version }}-${{ strategy.job-index }}" >> $GITHUB_ENV
158158

159159
- name: 'Run PHPUnit with coverage and JUnit report'
160160
run: 'vendor/bin/phpunit --coverage-clover=${{ env.FILE_PREFIX }}-clover.xml --log-junit ${{ env.FILE_PREFIX }}-junit.xml'

.github/workflows/php-unit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
run: 'composer dump-autoload --classmap-authoritative --no-cache'
9393

9494
- name: 'Set file prefix in environment'
95-
run: echo "FILE_PREFIX=${{ inputs.bedita_version }}-${{ matrix.php-version }}-${{ strategy.job-index }}" >> $GITHUB_ENV
95+
run: echo "FILE_PREFIX=${{ github.run_id }}-${{ inputs.bedita_version }}-${{ matrix.php-version }}-${{ strategy.job-index }}" >> $GITHUB_ENV
9696

9797
- name: 'Run PHPUnit with coverage and JUnit report'
9898
run: 'vendor/bin/phpunit --coverage-clover=${{ env.FILE_PREFIX }}-clover.xml --log-junit ${{ env.FILE_PREFIX }}-junit.xml'

0 commit comments

Comments
 (0)