Skip to content

Commit

Permalink
Allow testing specific PR in Actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisameling committed Jul 14, 2021
1 parent 5cda363 commit f3c515f
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
- '[0-9]+\.[0-9]+'
pull_request:
workflow_dispatch:
inputs:
pr:
description: 'PR number in mautic/mautic to test against'
required: false
schedule:
# Run every day at 10 AM UTC to discover potential issues with recent changes to Mautic itself
- cron: '0 10 * * *'
Expand Down Expand Up @@ -73,8 +77,14 @@ jobs:
composer validate --strict
composer install --prefer-dist --no-progress
- name: Clone Mautic features branch from GitHub
run: git clone -b features --single-branch --depth 1 https://github.com/mautic/mautic.git mautic
- name: Clone Mautic features or specific PR from GitHub
run: |
gh repo clone mautic/mautic -- --branch features --single-branch --depth 1
if [[ "${{ github.event.inputs.pr }}" != "" ]]; then
pushd mautic
gh pr checkout ${{ github.event.inputs.pr }}
popd
fi
- name: Move files to web root
run: |
Expand Down

0 comments on commit f3c515f

Please sign in to comment.