Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| dfc99b321d |
@@ -223,7 +223,11 @@ Overrides are written into the checked-out `config/system.php`. Requires `instal
|
||||
|
||||
### Base Modules
|
||||
|
||||
Delegates cloning to [action-module-install](https://git.ktrix.dev/Nodarx/action-module-install), then installs and enables the module via `bin/console`. Requires `install-php` and a reachable, configured database.
|
||||
Clones the configured module repository directly, then installs and enables the
|
||||
module via `bin/console`. This avoids a nested remote-action dependency, so the
|
||||
action works on GitHub-compatible hosts without resolving
|
||||
`Nodarx/action-module-install` through GitHub. Requires `install-php` and a
|
||||
reachable, configured database.
|
||||
|
||||
| Input | Description | Required | Default |
|
||||
|-------|-------------|----------|---------|
|
||||
|
||||
+21
-11
@@ -268,17 +268,27 @@ runs:
|
||||
|
||||
- name: Clone base modules
|
||||
if: inputs.install-base-modules == 'true'
|
||||
uses: Nodarx/action-module-install@main
|
||||
with:
|
||||
modules: |
|
||||
[
|
||||
{
|
||||
"name": "authentication_provider_password",
|
||||
"repo": "${{ inputs.base-modules-repository }}",
|
||||
"branch": "${{ inputs.base-modules-branch }}"
|
||||
}
|
||||
]
|
||||
install-path: ${{ inputs.server-path }}/modules
|
||||
shell: bash
|
||||
env:
|
||||
MODULE_REPOSITORY: ${{ inputs.base-modules-repository }}
|
||||
MODULE_REF: ${{ inputs.base-modules-branch }}
|
||||
MODULE_PATH: ${{ inputs.server-path }}/modules/authentication_provider_password
|
||||
run: |
|
||||
echo "::group::Cloning base modules"
|
||||
|
||||
if [ -e "$MODULE_PATH" ]; then
|
||||
echo "::error::Base module path already exists: $MODULE_PATH"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mkdir -p "$(dirname "$MODULE_PATH")"
|
||||
git init "$MODULE_PATH"
|
||||
git -C "$MODULE_PATH" remote add origin "$MODULE_REPOSITORY"
|
||||
git -C "$MODULE_PATH" fetch --depth 1 origin "$MODULE_REF"
|
||||
git -C "$MODULE_PATH" checkout --detach FETCH_HEAD
|
||||
|
||||
echo "✓ Base modules cloned"
|
||||
echo "::endgroup::"
|
||||
|
||||
- name: Install and enable base modules
|
||||
if: inputs.install-base-modules == 'true'
|
||||
|
||||
Reference in New Issue
Block a user