Skip to content
This repository was archived by the owner on Jun 30, 2024. It is now read-only.

Commit 40e6326

Browse files
github-actions[bot]dependabot[bot]femiwiki-bot
authored
Update extension test workflow on main branch (#370)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: femiwiki-bot <femiwiki-bot@users.noreply.github.com>
1 parent 72659ce commit 40e6326

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

.github/workflows/extension-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ jobs:
158158
run: |
159159
composer install --prefer-dist --no-progress --no-interaction # $GITHUB_WORKSPACE
160160
- name: Setup Node.js environment
161-
uses: actions/setup-node@v2
161+
uses: actions/setup-node@v3
162162
with:
163163
node-version: '16'
164164
cache: 'npm'
@@ -236,7 +236,7 @@ jobs:
236236
237237
- name: Upload coverage to Codecov
238238
if: ${{ matrix.stage == 'coverage' }}
239-
uses: codecov/codecov-action@v2
239+
uses: codecov/codecov-action@v3
240240
with:
241241
directory: /home/runner/cover
242242

.github/workflows/release-and-submit.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# If you see this message on 'femiwiki/.github' repository, please keep in mind that all changes of
2+
# this workflow file is for being copied to other repositories. If you see this message on any other
3+
# repositories, DO NOT EDIT this file itself. You should edit
4+
# https://github.com/femiwiki/.github/blob/main/workflow-templates/.github/workflows/release-and-submit.yml
5+
# Instead of this.
6+
17
on:
28
push:
39
tags:
@@ -47,6 +53,11 @@ jobs:
4753
asset_content_type: application/zip
4854
- name: Submit a PR
4955
run: |
56+
if [ '${{ github.event.repository.name }}' = 'FemiwikiSkin' ]; then
57+
EXTENSION=Femiwiki
58+
else
59+
EXTENSION=${{ github.event.repository.name }}
60+
fi
5061
curl \
5162
--fail \
5263
--request POST \
@@ -56,7 +67,7 @@ jobs:
5667
--data '{
5768
"event_type": "bump-extension",
5869
"client_payload": {
59-
"extension": "${{ github.event.repository.name }}",
70+
"extension": "$EXTENSION",
6071
"version": "${{ steps.tag_name.outputs.tag_name }}"
6172
}
6273
}'

0 commit comments

Comments
 (0)