Skip to content

Commit

Permalink
Allow running tests without PR number
Browse files Browse the repository at this point in the history
  • Loading branch information
jolelievre committed Oct 2, 2023
1 parent 5d25adc commit 33f1277
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/actions/checkout-prestashop/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ runs:

# Or simply get the branch/tag
- name: Get ref from repository ${{ inputs.repository_ref }}
if: inputs.pr_number == '' && inputs.rebase_or_merge == '' && inputs.repository_ref != 'develop'
if: inputs.pr_number == '' && inputs.repository_ref != 'develop'
working-directory: ${{ inputs.ps_dir }}
run: |
git fetch origin ${{ inputs.repository_ref }}:${{ inputs.repository_ref }}
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/pr_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ on:
workflow_dispatch:
inputs:
pr_number:
description: Pull request Id
required: true
description: Pull request Id (leave empty to test branch/version only)
required: false
default: ''
base_branch:
type: choice
description: Base branch to rebase the PR
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/pr_test_single_campaign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ on:
workflow_dispatch:
inputs:
pr_number:
description: Pull request Id
required: true
description: Pull request Id (leave empty to test branch/version only)
required: false
default: ''
base_branch:
type: choice
description: Base branch to rebase the PR
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test-sanity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ jobs:
- name: Checkout PrestaShop
uses: ./custom_actions/.github/workflows/actions/checkout-prestashop
with:
repository_ref: ${{ inputs.pr_number }}
repository_ref: ${{ inputs.repository_ref }}
pr_number: ${{ inputs.pr_number }}
rebase_or_merge: ${{ inputs.rebase_or_merge }}
backoffice_layout: ${{ inputs.backoffice_layout }}
ps_dir: ${{ env.PS_DIR }}
Expand Down

0 comments on commit 33f1277

Please sign in to comment.