Skip to content

Commit

Permalink
ci: combine Labels and Title jobs (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillmorozov authored Jun 29, 2024
1 parent a02b0d2 commit 1cb384e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
10 changes: 8 additions & 2 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ Fix:
CI:
- changed-files:
- any-glob-to-any-file:
- .github/workflows/*
- .github/labeler.yml
- .github/dependabot.yml
- .github/labeler.yml
- .github/workflows/*
- head-branch:
- ^ci

Expand Down Expand Up @@ -43,6 +43,12 @@ Vim:
- any-glob-to-any-file:
- vim/**/*

Taskfile:
- changed-files:
- any-glob-to-any-file:
- Taskfile.yml
- ThemeTasks.yml

Wezterm:
- changed-files:
- any-glob-to-any-file:
Expand Down
20 changes: 7 additions & 13 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,12 @@ on:
- pull_request

jobs:
labels:
name: Labels
automation:
name: Automation
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: read
steps:
- name: Add labels based on changes
uses: actions/[email protected]
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"

title:
name: Title
runs-on: ubuntu-latest
permissions:
pull-requests: read
steps:
- name: Check title
uses: amannn/[email protected]
Expand All @@ -35,3 +24,8 @@ jobs:
vim
wezterm
zsh
- name: Add labels based on changes
uses: actions/[email protected]
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 1cb384e

Please sign in to comment.