Skip to content

Commit

Permalink
Merge pull request #256 from mautic/workflow-dispatch
Browse files Browse the repository at this point in the history
Allow testing specific PR in Actions workflow
  • Loading branch information
RCheesley authored Jul 15, 2021
2 parents 5cda363 + 5019c00 commit 9087dde
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 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,16 @@ 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
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Move files to web root
run: |
Expand Down

0 comments on commit 9087dde

Please sign in to comment.