Skip to content

Commit

Permalink
Just send a PR comment in case of missing dist folders
Browse files Browse the repository at this point in the history
Also, add missing variables to the `notify-triage.yml` workflow.
  • Loading branch information
dead-claudia committed Sep 23, 2024
1 parent 101126f commit ace964d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 21 deletions.
21 changes: 0 additions & 21 deletions .github/workflows/build.yml

This file was deleted.

18 changes: 18 additions & 0 deletions .github/workflows/check-for-missing-dist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Notify on missing dist update

on:
pull_request_target:
branches: [main]
paths: ['lib', '!dist']

jobs:
complain:
runs-on: ubuntu-latest
steps:
- run: |
export GITHUB_TOKEN="$GH_TOKEN_SECRET"
gh pr review "$PR_URL" --request-changes --body "$MESSAGE"
env:
GITHUB_TOKEN: ${{ github.token }}
PR_URL: ${{ github.event.issue.url }}
MESSAGE: Don't forget to rebuild `dist/`.
3 changes: 3 additions & 0 deletions .github/workflows/notify-triage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ jobs:
export GITHUB_TOKEN="$GH_TOKEN_SECRET"
gh issue edit "$ISSUE_URL" --add-project 'Triage/bugs' &&
gh issue comment "$ISSUE_URL" --body '@MithrilJS/triage Please take a look.'
env:
GITHUB_TOKEN: ${{ github.token }}
ISSUE_URL: ${{ github.event.issue.url }}

0 comments on commit ace964d

Please sign in to comment.