Skip to content

Commit 0814bb2

Browse files
authored
ci: cleanup workflows (catppuccin#327)
1 parent c7a5c79 commit 0814bb2

9 files changed

Lines changed: 38 additions & 33 deletions

File tree

.github/workflows/format.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,18 @@ on:
66

77
jobs:
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

.github/workflows/generate.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ env:
1212

1313
jobs:
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.
@@ -52,4 +52,3 @@ jobs:
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

.github/workflows/issues.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff 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

.github/workflows/lint.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ env:
1212
jobs:
1313
lint:
1414
name: Lint Userstyles
15-
1615
runs-on: ubuntu-latest
1716

1817
steps:

.github/workflows/maintainers.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ env:
1111

1212
jobs:
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
@@ -36,5 +36,3 @@ jobs:
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

.github/workflows/pr-titles.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
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

.github/workflows/pull-requests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ jobs:
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

.github/workflows/sync-labels.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@ on:
99

1010
jobs:
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"

.github/workflows/typos.yml

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)