Skip to content

Commit

Permalink
Merge branch 'main' into add-lintstaged
Browse files Browse the repository at this point in the history
  • Loading branch information
PKief authored Jan 6, 2025
2 parents 5fa0d5c + 3151996 commit 78285a2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
File renamed without changes.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ on:
permissions:
contents: read
pull-requests: write
issues: write # Update issue labels

jobs:
build:
Expand Down Expand Up @@ -57,6 +58,6 @@ jobs:
- name: 🏷️ Manage label based on build result
if: ${{ github.event_name == 'pull_request' }}
run: .github/actions/update-status-label.sh ${{ github.event.pull_request.number }} ${{ steps.build.outcome }} "❌ failed build"
run: .github/scripts/update-status-label.sh ${{ github.event.pull_request.number }} ${{ steps.build.outcome }} "❌ failed build"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5 changes: 3 additions & 2 deletions .github/workflows/color-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
permissions:
contents: read
pull-requests: write
issues: write # Update issue labels

jobs:
color-check:
Expand All @@ -23,7 +24,7 @@ jobs:
persist-credentials: false
sparse-checkout-cone-mode: false
sparse-checkout: |
.github/actions/update-status-label.sh
.github/scripts/update-status-label.sh
material-colors.yml
icons/
Expand All @@ -39,6 +40,6 @@ jobs:
- name: 🏷️ Manage label based on color check result
if: always()
run: .github/actions/update-status-label.sh ${{ github.event.pull_request.number }} ${{ steps.color-check.outcome }} "🎨 invalid colors"
run: .github/scripts/update-status-label.sh ${{ github.event.pull_request.number }} ${{ steps.color-check.outcome }} "🎨 invalid colors"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5 changes: 3 additions & 2 deletions .github/workflows/pr-title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:

permissions:
pull-requests: write
issues: write # Update issue labels

jobs:
lint-pr-title:
Expand All @@ -22,7 +23,7 @@ jobs:
sparse-checkout-cone-mode: false
sparse-checkout: |
commitlint.config.js
.github/actions/update-status-label.sh
.github/scripts/update-status-label.sh
- name: 📦 Install dependencies
run: npm install --global @commitlint/config-conventional commitlint
Expand All @@ -36,6 +37,6 @@ jobs:

- name: 🏷️ Manage label based on PR title check result
if: always()
run: .github/actions/update-status-label.sh ${{ github.event.pull_request.number }} ${{ steps.title-check.outcome }} "🔤 invalid title"
run: .github/scripts/update-status-label.sh ${{ github.event.pull_request.number }} ${{ steps.title-check.outcome }} "🔤 invalid title"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 78285a2

Please sign in to comment.