mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-26 22:29:28 +09:00
09d30fef5b
* ci: include themselves in `on.push.paths` command: find .github/workflows -type f \( -name '*.yaml' -or -name '*.yml' \) | xargs -I {} yq_4.44.2-linux_x86-64 'select(.on.push.paths != null) | .[0] | map("{}")[0]' {} | xargs -I {} ~/.local/bin/yq_4.44.2-linux_x86-64 -i '.on.push.paths += ["{}"]' {} * ci: include themselves in `on.pull_request.paths` command: find .github/workflows -type f \( -name '*.yaml' -or -name '*.yml' \) | xargs -I {} yq_4.44.2-linux_x86-64 'select(.on.pull_request.paths != null) | .[0] | map("{}")[0]' {} | xargs -I {} ~/.local/bin/yq_4.44.2-linux_x86-64 -i '.on.pull_request.paths += ["{}"]' {}
30 lines
869 B
YAML
30 lines
869 B
YAML
name: Check Misskey JS version
|
|
|
|
on:
|
|
push:
|
|
branches: [ develop ]
|
|
paths:
|
|
- packages/misskey-js/package.json
|
|
- package.json
|
|
- .github/workflows/check-misskey-js-version.yml
|
|
pull_request:
|
|
branches: [ develop ]
|
|
paths:
|
|
- packages/misskey-js/package.json
|
|
- package.json
|
|
- .github/workflows/check-misskey-js-version.yml
|
|
jobs:
|
|
check-version:
|
|
# ルートの package.json と packages/misskey-js/package.json のバージョンが一致しているかを確認する
|
|
name: Check version
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4.1.1
|
|
- name: Check version
|
|
run: |
|
|
if [ "$(jq -r '.version' package.json)" != "$(jq -r '.version' packages/misskey-js/package.json)" ]; then
|
|
echo "Version mismatch!"
|
|
exit 1
|
|
fi
|