Skip to content

Commit

Permalink
Merge pull request #3 from lameze/fixHardcodedRepoDetails
Browse files Browse the repository at this point in the history
Make workflow compatible with forks by replacing hardcoded repo refer…
  • Loading branch information
HuongNV13 authored Jan 17, 2025
2 parents b3b1e31 + e57edb0 commit b4bbd6d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/web-installer-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ jobs:
os: [ubuntu-latest]
php: [8.2, 8.3]
steps:
- uses: moodlehq/moodle-webinstaller-test@main
- name: Checkout repository
uses: actions/checkout@v4

- uses: ./
with:
repository: ${{ github.event.inputs.repository }}
branch: ${{ github.event.inputs.branch }}
Expand Down
11 changes: 3 additions & 8 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,20 +59,15 @@ runs:
ini-values: max_input_vars=5000
coverage: none

- name: Configuring git vars
uses: rlespinasse/github-slug-action@v4

- name: Clone specified repository and branch
run: |
git clone --depth 1 -b ${{ inputs.branch }} ${{ inputs.repository }} moodle
shell: bash

- name: Clone Plugin repository
uses: actions/checkout@v4
with:
repository: moodlehq/moodle-webinstaller-test
ref: main
path: webinstall
run: |
git clone --depth 1 https://github.com/${{ github.repository_owner }}/moodle-webinstaller-test.git webinstall
shell: bash

- name: Install Plugin Composer Dependencies
shell: bash
Expand Down

0 comments on commit b4bbd6d

Please sign in to comment.