Skip to content

Commit

Permalink
Run main and example workflow on push to any branch
Browse files Browse the repository at this point in the history
  • Loading branch information
just95 committed Dec 7, 2023
1 parent a164217 commit 7f3fb78
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,15 @@

name: Example CI

# Trigger the workflow whenever commits are pushed to the `main` branch or
# development branches with the `-ci` postfix.
# Trigger the workflow whenever commits are pushed to any branch and modify
# source files, tests or configuration files.
# The workflow also runs when it is modified itself or source files outside of
# the `example` directory change because the examples depend on the `toml`
# package. However, source files of the `toml` package for tests can be ignored.
#
# Additionally, the workflow runs once every day at 6am on the `main` branch.
on:
push:
branches:
- "main"
- "*-ci"
paths:
- ".github/workflows/example.yaml"
- "lib/**"
Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,14 @@

name: Dart CI

# Trigger the workflow whenever commits are pushed to the `main` branch or
# development branches with the `-ci` postfix that modify source files, tests or
# configuration files. There is a separate workflow that checks the example
# source code. The workflow also runs when it is modified itself.
# Trigger the workflow whenever commits are pushed to any branch and modify
# source files, tests or configuration files. There is a separate workflow that
# checks the example source code. The workflow also runs when it is modified
# itself.
#
# Additionally, the workflow runs once every day at 6am on the `main` branch.
on:
push:
branches:
- "main"
- "*-ci"
paths:
- ".github/workflows/main.yaml"
- "bin/**"
Expand Down

0 comments on commit 7f3fb78

Please sign in to comment.