Skip to content

Commit

Permalink
Run sanity checks on base branch change
Browse files Browse the repository at this point in the history
  • Loading branch information
alfonsomthd committed Nov 26, 2024
1 parent c8ab830 commit e65b03b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/frontend-build.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: Build Test
name: Sanity Checks
on:
push:
branches: [master]
pull_request:
branches: [master, release*]
workflow_call:

jobs:
build-test:
name: resolve-dependencies
sanity-checks:
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/on-pr-edit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: On PR edit
on:
pull_request:
types: [edited]

jobs:
run-sanity-checks:
# Only if base branch has been changed.
if: github.event.changes.base.ref.from && github.event.changes.base.ref.from != github.event.pull_request.base.ref
uses: ./.github/workflows/frontend-build.yml

0 comments on commit e65b03b

Please sign in to comment.