Skip to content

Commit 7c810d2

Browse files
authored
build: ignore dist and move update-dist to after PRs are merged (#400)
1 parent da8f061 commit 7c810d2

2 files changed

Lines changed: 6 additions & 9 deletions

File tree

.github/workflows/update-dist.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@
1414

1515
name: Update dist
1616
on:
17-
repository_dispatch:
18-
types: [update-dist-command]
17+
pull_request:
18+
types: [ closed ]
1919
jobs:
2020
update-dist:
21+
# will only run if the PR was merged
22+
if: github.event.pull_request.merged == true
2123
runs-on: ubuntu-latest
2224
steps:
2325
- uses: actions/checkout@v2
@@ -34,10 +36,3 @@ jobs:
3436
git add dist
3537
git commit -m "chore: update dist folder [skip ci]" || true
3638
git push origin
37-
- name: Add reaction
38-
uses: peter-evans/create-or-update-comment@a35cf36e5301d70b76f316e867e7788a55a31dae
39-
with:
40-
token: ${{ secrets.SYNCED_GITHUB_TOKEN_REPO }}
41-
repository: ${{ github.event.client_payload.github.payload.repository.full_name }}
42-
comment-id: ${{ github.event.client_payload.github.payload.comment.id }}
43-
reaction-type: rocket

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ node_modules
33
**/docs
44
bazel-*
55
.bazelrc.user
6+
dist
7+
68
# Logs
79
logs
810
*.log

0 commit comments

Comments
 (0)