Skip to content

Commit

Permalink
fix(pdk): include checkout step in prerelease actions
Browse files Browse the repository at this point in the history
  • Loading branch information
EdieLemoine committed Jul 31, 2024
1 parent 32a4e33 commit 5cf96b0
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pdk-prerelease-pr/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ inputs:
required: true
description: 'The private key of the GitHub app.'

ref:
description: 'The ref to check out'
required: false
default: ${{ github.event.client_payload.ref || github.ref }}

pr-number:
description: 'Pull request number'
required: true
Expand Down Expand Up @@ -45,6 +50,11 @@ outputs:
runs:
using: composite
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}
fetch-depth: 0

- name: 'Determine version'
id: version
shell: bash
Expand Down
10 changes: 10 additions & 0 deletions pdk-prerelease-push/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ inputs:
required: true
description: 'The private key of the GitHub app.'

ref:
description: 'The ref to check out'
required: false
default: ${{ github.ref }}

php-version:
description: 'PHP version that is used'
required: false
Expand Down Expand Up @@ -41,6 +46,11 @@ outputs:
runs:
using: composite
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}
fetch-depth: 0

- name: 'Determine version'
id: version
shell: bash
Expand Down

0 comments on commit 5cf96b0

Please sign in to comment.