ci: automatically sync maintainers in the team #142
Workflow file for this run
This file contains 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: Typo Checker | |
on: | |
pull_request: | |
push: | |
branches: [main] | |
jobs: | |
run: | |
name: Spell Check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: crate-ci/typos@master | |
id: typos | |
continue-on-error: true | |
# 'continue-on-error' will always succeed, we should exit based on the outcome and not the conclusion | |
# ref: https://docs.github.com/en/actions/learn-github-actions/contexts#steps-context | |
- name: Fail When Typos Are Found in Pull Request | |
if: ${{ github.event_name == 'pull_request' && steps.typos.outcome != 'success' }} | |
run: "exit 1" | |
# We always want this check to pass on branch 'main' but continue to fail on PRs | |
- name: Pass When Branch 'main' | |
if: ${{ github.repository == 'catppuccin/userstyles' && github.ref == 'refs/heads/main' }} | |
run: "exit 0" |