Skip to content

Commit

Permalink
fix: run labeler script in build workflow only in PR (#2788)
Browse files Browse the repository at this point in the history
Co-authored-by: Philipp Kief <[email protected]>
  • Loading branch information
Okinea Dev and PKief authored Jan 6, 2025
1 parent e5dddb5 commit a767a83
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
bun run vscode:prepublish
- name: 🏷️ Manage label based on build result
if: ${{ always() }}
if: ${{ github.event_name == 'pull_request' }}
run: .github/actions/update-status-label.sh ${{ github.event.pull_request.number }} ${{ steps.build.outcome }} "❌ failed build"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/color-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
npx svg-color-linter --config material-colors.yml ${svgFiles}
- name: 🏷️ Manage label based on color check result
if: ${{ always() }}
if: always()
run: .github/actions/update-status-label.sh ${{ github.event.pull_request.number }} ${{ steps.color-check.outcome }} "🎨 invalid colors"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/pr-title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
run: echo "$PR_TITLE" | npx commitlint --help-url $HELP_URL

- name: 🏷️ Manage label based on PR title check result
if: ${{ always() }}
if: always()
run: .github/actions/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 a767a83

Please sign in to comment.