Skip to content

Commit

Permalink
github: simplify building only on push events
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Deziel <[email protected]>
  • Loading branch information
simondeziel committed Dec 17, 2024
1 parent 3cb9da4 commit 98a2fd1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/builds.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: Builds
on:
pull_request:
push:
branches:
- 4.0-edge
Expand Down Expand Up @@ -33,9 +32,9 @@ jobs:
snap:
name: Trigger snap build
runs-on: ubuntu-24.04
needs: lxd-migrate
if: ${{ github.repository == 'canonical/lxd-pkg-snap' && github.event_name == 'push' && github.actor != 'dependabot[bot]' }}
runs-on: ubuntu-24.04
if: ${{ github.repository == 'canonical/lxd-pkg-snap' && github.actor != 'dependabot[bot]' }}
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down

0 comments on commit 98a2fd1

Please sign in to comment.