chore(deps): update fcitx5-m17n digest to 75a7941 (#169) #463
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: | |
push: | |
branches: | |
- master | |
tags: | |
- 'macos-[0-9]+.*' | |
pull_request: | |
workflow_dispatch: | |
env: | |
MOZC_SHA: 88b1dcae03a0a16192586dca3da157dad64f0e2f | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
outputs: | |
MOZC_SHA: ${{ env.MOZC_SHA }} | |
message: ${{ steps.commit-message.outputs.message }} | |
steps: | |
- uses: actions/checkout@v5 | |
- uses: actions/setup-python@v6 | |
with: | |
python-version: '3.13' | |
- name: Install dependencies | |
run: pip install ruff pyright dirhash | |
- name: Lint | |
run: | | |
ruff check scripts | |
pyright scripts/*.py | |
- name: Pass commit message | |
id: commit-message | |
run: | | |
if [[ "${{ github.event_name }}" == 'pull_request' ]]; then | |
echo "message=${{ github.event.pull_request.title }}" >> "$GITHUB_OUTPUT" | |
elif [[ "${{ github.ref }}" == 'refs/heads/master' ]]; then | |
message=$(echo "${{ github.event.head_commit.message }}" | head -n 1) | |
echo "message=$message" >> "$GITHUB_OUTPUT" | |
else | |
echo "message=!windows!js" >> "$GITHUB_OUTPUT" | |
fi | |
macos: | |
if: "!contains(needs.lint.outputs.message, '!macos')" | |
needs: lint | |
uses: ./.github/workflows/macos.yml | |
with: | |
mozc_sha: ${{ needs.lint.outputs.MOZC_SHA }} | |
windows: | |
if: "!contains(needs.lint.outputs.message, '!windows')" | |
needs: lint | |
uses: ./.github/workflows/windows.yml | |
js: | |
if: "!contains(needs.lint.outputs.message, '!js')" | |
needs: lint | |
uses: ./.github/workflows/js.yml | |
with: | |
mozc_sha: ${{ needs.lint.outputs.MOZC_SHA }} |