File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66
77jobs :
88 format :
9- name : Format Code
9+ name : Format userstyles
1010 runs-on : ubuntu-latest
1111
1212 steps :
1313 - uses : actions/checkout@v4
1414 with :
1515 token : ${{ secrets.USERSTYLES_TOKEN }}
16- - uses : actions/setup-node@v3
1716
18- - name : Format files
17+ - name : Setup Node.js
18+ uses : actions/setup-node@v3
19+
20+ - name : Format userstyles
1921 run : npx prettier --write styles/**/*.css
2022
2123 - name : Pull changes
Original file line number Diff line number Diff line change 1212
1313jobs :
1414 generate-health-files :
15- runs-on : ubuntu-latest
1615 name : Generate health files
16+ runs-on : ubuntu-latest
1717 permissions :
1818 # Give the default GITHUB_TOKEN write permission to commit and push the
1919 # added or changed files to the repository.
5252 commit_message : " chore: generate health files"
5353 commit_author : " github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
5454 branch : ${{ github.ref }}
55- # yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
Original file line number Diff line number Diff line change @@ -11,11 +11,11 @@ jobs:
1111 runs-on : ubuntu-latest
1212
1313 steps :
14- - uses : github/ issue-labeler@v3.1
15- with :
16- repo-token : " ${{ secrets.GITHUB_TOKEN }} "
17- configuration-path : .github/issue-labeler.yml
18- enable-versioned-regex : 0
19- include-title : 1
20- sync-labels : 1
21- # yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
14+ - name : Add issue labels
15+ uses : github/issue-labeler@v3.1
16+ with :
17+ repo-token : " ${{ secrets.GITHUB_TOKEN }} "
18+ configuration-path : .github/issue-labeler.yml
19+ enable-versioned-regex : 0
20+ include-title : 1
21+ sync-labels : 1
Original file line number Diff line number Diff line change 1212jobs :
1313 lint :
1414 name : Lint Userstyles
15-
1615 runs-on : ubuntu-latest
1716
1817 steps :
Original file line number Diff line number Diff line change 1111
1212jobs :
1313 sync-maintainers :
14- runs-on : ubuntu-latest
1514 name : Sync maintainers
15+ runs-on : ubuntu-latest
1616
1717 steps :
1818 - uses : actions/checkout@v4
3636 run : deno task sync-maintainers
3737 env :
3838 GITHUB_TOKEN : ${{ secrets.USERSTYLES_TOKEN }}
39-
40- # yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
Original file line number Diff line number Diff line change 1010 runs-on : ubuntu-latest
1111 permissions :
1212 pull-requests : write
13+
1314 steps :
1415 - name : Lint pull request title
1516 uses : amannn/action-semantic-pull-request@v5
Original file line number Diff line number Diff line change 1010
1111 steps :
1212 - uses : actions/checkout@v4
13- - uses : actions/labeler@v4.0.3
13+
14+ - name : Add pull request labels
15+ uses : actions/labeler@v4.0.3
1416 with :
1517 configuration-path : .github/pr-labeler.yml
1618 sync-labels : true
Original file line number Diff line number Diff line change 99
1010jobs :
1111 update :
12- name : Update
12+ name : Sync labels
1313 runs-on : ubuntu-latest
14+
1415 steps :
15- - uses : r7kamura/github-label-sync-action@v0
16+ - name : Sync labels
17+ uses : r7kamura/github-label-sync-action@v0
1618 if : ${{ github.repository == 'catppuccin/userstyles' }}
1719 with :
1820 allow_added_labels : " true"
Original file line number Diff line number Diff line change @@ -11,18 +11,20 @@ jobs:
1111 runs-on : ubuntu-latest
1212
1313 steps :
14- - uses : actions/checkout@v4
15- - uses : crate-ci/typos@master
16- id : typos
17- continue-on-error : true
14+ - uses : actions/checkout@v4
1815
19- # 'continue-on-error' will always succeed, we should exit based on the outcome and not the conclusion
20- # ref: https://docs.github.com/en/actions/learn-github-actions/contexts#steps-context
21- - name : Fail when typos are found in pull request
22- if : ${{ github.event_name == 'pull_request' && steps.typos.outcome != 'success' }}
23- run : " exit 1"
16+ - name : Check for typos
17+ uses : crate-ci/typos@master
18+ id : typos
19+ continue-on-error : true
2420
25- # We always want this check to pass on branch 'main' but continue to fail on PRs
26- - name : Pass on 'main' branch
27- if : ${{ github.repository == 'catppuccin/userstyles' && github.ref == 'refs/heads/main' }}
28- run : " exit 0"
21+ # 'continue-on-error' will always succeed, we should exit based on the outcome and not the conclusion
22+ # ref: https://docs.github.com/en/actions/learn-github-actions/contexts#steps-context
23+ - name : Fail when typos are found in pull request
24+ if : ${{ github.event_name == 'pull_request' && steps.typos.outcome != 'success' }}
25+ run : " exit 1"
26+
27+ # We always want this check to pass on branch 'main' but continue to fail on PRs
28+ - name : Pass on 'main' branch
29+ if : ${{ github.repository == 'catppuccin/userstyles' && github.ref == 'refs/heads/main' }}
30+ run : " exit 0"
You can’t perform that action at this time.
0 commit comments