Skip to content

Commit

Permalink
Build dev environment more efficiently (ledgersmb#7693)
Browse files Browse the repository at this point in the history
* Run workflows for tags (releases)

* Build dev environment on 'master' push

Instead of rerunning tests on each _closed_ PR, trigger
building the dev environment when a push to the master branch
has happened.
  • Loading branch information
ehuelsmann authored and ylavoie committed Nov 5, 2023
1 parent 22d184c commit 6e8d1bb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ name: CI
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
tags:
- '*'
paths-ignore:
- '.circleci'
branches-ignore:
Expand All @@ -16,7 +18,7 @@ on:
- '*'
paths-ignore:
- '.circleci'
types: [opened, reopened, synchronize, closed]
types: [opened, reopened, synchronize]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down Expand Up @@ -531,7 +533,7 @@ jobs:
exit 1
build-dev:
if: github.event.pull_request.merged == true
if: github.event_name == 'push' && github.ref == 'refs/heads/master'

runs-on: ubuntu-latest

Expand Down

0 comments on commit 6e8d1bb

Please sign in to comment.