Skip to content

Commit

Permalink
Update workflow and add more commit information
Browse files Browse the repository at this point in the history
Also removes REL1_39, adds REL1_41, and uses PHP 8.1 for REL1_40 and PHP 8.2 for other versions.
  • Loading branch information
Universal-Omega committed Jan 2, 2024
1 parent 60b9760 commit 31b7efd
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/mediawiki-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:

steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.11.0
uses: styfle/cancel-workflow-action@0.12.0
with:
access_token: ${{ github.token }}

Expand Down
21 changes: 20 additions & 1 deletion .github/workflows/sync-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,21 @@ jobs:
- run: |
echo "GITHUB_REPOSITORY=${GITHUB_REPOSITORY}" >> $GITHUB_ENV
echo "GITHUB_SHA=${GITHUB_SHA}" >> $GITHUB_ENV
echo "GITHUB_ACTOR=${GITHUB_ACTOR}" >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@v4

- name: Extract commit information
id: extract_commit
run: |
echo "::set-output name=short_message::$(git log -1 --pretty=%s)"
echo "::set-output name=long_message::$(git log -1 --pretty=%b)"
# Remove the checked-out repository to clean up
- name: Remove checked-out repository
run: rm -rf $GITHUB_WORKSPACE/.github

- name: Copy workflow
uses: andstor/copycat-action@v3
with:
Expand All @@ -42,6 +57,10 @@ jobs:
dst_repo_name: ${{ matrix.repository }}
dst_branch: master
commit_message: |
Update workflow
Update workflow: ${{ steps.extract_commit.outputs.short_message }}
${{ steps.extract_commit.outputs.long_message }}
from ${{ env.GITHUB_REPOSITORY }} (https://github.com/${{ env.GITHUB_REPOSITORY }}/commit/${{ env.GITHUB_SHA }})
${{ env.GITHUB_ACTOR != 'The-Voidwalker' && format('Co-authored-by: {0}', env.GITHUB_ACTOR) || '' }}
25 changes: 9 additions & 16 deletions workflow-templates/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,33 +12,26 @@ jobs:
strategy:
matrix:
include:
# Latest Old MediaWiki stable - PHP 7.4
- mw: 'REL1_39'
php: 7.4
php-docker: 74
composer-test: true
experimental: false

# Latest MediaWiki stable - PHP 7.4
# Latest MediaWiki stable - PHP 8.1
- mw: 'REL1_40'
php: 7.4
php-docker: 74
php: 8.1
php-docker: 81
composer-test: true
experimental: false

# Latest MediaWiki master - PHP 7.4
- mw: 'master'
php: 7.4
php-docker: 74
experimental: true
# Latest MediaWiki release branch - PHP 8.2
- mw: 'REL1_41'
php: 8.2
php-docker: 82
composer-test: false
experimental: true

# Latest MediaWiki master - PHP 8.2
- mw: 'master'
php: 8.2
php-docker: 82
experimental: true
composer-test: false
experimental: true

with:
mw: ${{ matrix.mw }}
Expand Down

0 comments on commit 31b7efd

Please sign in to comment.