Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .github/plugin/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,15 @@ runs:
echo "::endgroup::"
shell: bash

- name: Install Core Patches
if: ${{ always() }}
# We should attempt to install a patch, and pass if there isnt one for the branch.
run: |
git config --global user.email "test@test.com"
git config --global user.name "Test"
((test -f plugin/patch/${{ matrix.moodle-branch }}.diff && cd moodle && git am --whitespace=nowarn < ../plugin/patch/${{ matrix.moodle-branch }}.diff) || echo No patch found;)
shell: bash

- name: Install Moodle
run: |
# Install moodle commands
Expand All @@ -104,15 +113,6 @@ runs:
DB: ${{ matrix.database }}
MOODLE_BRANCH: ${{ matrix.moodle-branch }}

- name: Install Core Patches
if: ${{ always() }}
# We should attempt to install a patch, and pass if there isnt one for the branch.
run: |
git config --global user.email "test@test.com"
git config --global user.name "Test"
((test -f plugin/patch/${{ matrix.moodle-branch }}.diff && cd moodle && git am --whitespace=nowarn < ../plugin/patch/${{ matrix.moodle-branch }}.diff) || echo No patch found;)
shell: bash

- name: Run phplint
if: ${{ always() && inputs.disable_phplint != 'true' }}
run: moodle-plugin-ci phplint
Expand Down