Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use git to install MediaWiki #4

Merged
merged 1 commit into from
Apr 15, 2024
Merged
Show file tree
Hide file tree
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
9 changes: 8 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,15 @@ runs:
path: ~/.composer/cache
key: composer-php${{ inputs.php }}

- name: Download Mediawiki
uses: actions/checkout@v2
with:
path: mediawiki
repository: wikimedia/mediawiki
ref: ${{ inputs.mwbranch }}

- name: Install MediaWiki
run: bash $GITHUB_ACTION_PATH/install.sh ${{ inputs.mwbranch }} ${{ inputs.extension }} ${{ inputs.type }}
run: bash $GITHUB_ACTION_PATH/install.sh ${{ inputs.extension }} ${{ inputs.type }}
shell: bash

- uses: actions/checkout@v2
Expand Down
12 changes: 2 additions & 10 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,8 @@

set -o pipefail

MW_BRANCH=$1
EXTENSION_NAME=$2
TYPE=$3

# Download wiki release
wget https://github.com/wikimedia/mediawiki/archive/$MW_BRANCH.tar.gz -nv -q

# Extract into `mediawiki` directory
tar -zxf $MW_BRANCH.tar.gz
mv mediawiki-$MW_BRANCH mediawiki
EXTENSION_NAME=$1
TYPE=$2

# Install composer dependencies
cd mediawiki && composer install
Expand Down
Loading