Skip to content

Commit

Permalink
fix(pdk): run cache after upgrade on prerelease
Browse files Browse the repository at this point in the history
  • Loading branch information
EdieLemoine committed Apr 16, 2024
1 parent e1b94b3 commit 66155f7
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
16 changes: 16 additions & 0 deletions pdk-prerelease-pr/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ inputs:
description: 'PHP Docker image to use'
required: true

source-hash:
description: 'Hash of the source files'
required: true

vendor-hash:
description: 'Hash of the vendor files'
required: false
default: ${{ hashFiles('**/composer.json', '**/composer.lock', '**/scoper.inc.php', '**/scoper.*.inc.php') }}

outputs:
version:
description: 'The version that was released.'
Expand All @@ -35,6 +44,13 @@ runs:
no-commit: true
image: ${{ inputs.image }}

- uses: myparcelnl/actions/pdk-cache@v4
with:
php-version: ${{ inputs.php-version }}
php-scoper-version: ${{ inputs.php-scoper-version }}
source-hash: ${{ inputs.source-hash }}
vendor-hash: ${{ inputs.vendor-hash }}

- uses: myparcelnl/actions/pdk-release@v4
with:
command: 'prerelease'
Expand Down
16 changes: 16 additions & 0 deletions pdk-prerelease-push/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ inputs:
description: 'PHP Docker image to use'
required: true

source-hash:
description: 'Hash of the source files'
required: true

vendor-hash:
description: 'Hash of the vendor files'
required: false
default: ${{ hashFiles('**/composer.json', '**/composer.lock', '**/scoper.inc.php', '**/scoper.*.inc.php') }}

outputs:
version:
description: 'The version that was released.'
Expand All @@ -30,6 +39,13 @@ runs:
image: ${{ inputs.image }}
no-commit: true

- uses: myparcelnl/actions/pdk-cache@v4
with:
php-version: ${{ inputs.php-version }}
php-scoper-version: ${{ inputs.php-scoper-version }}
source-hash: ${{ inputs.source-hash }}
vendor-hash: ${{ inputs.vendor-hash }}

- uses: myparcelnl/actions/pdk-release@v4
with:
command: 'prerelease'
Expand Down

0 comments on commit 66155f7

Please sign in to comment.