Skip to content

Commit

Permalink
Adds a filter for untagged commits
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Krienbühl committed Dec 21, 2018
1 parent a1e594f commit b26839d
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/main.workflow
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
workflow "Run Tests" {
workflow "Run Tests and Release if Tagged" {
on = "push"
resolves = "Test"
resolves = "Release"
}

action "Test" {
uses = "seantis/roots/actions/test@master"
runs = "run-tests"
}

workflow "Run Release" {
on = "push"
resolves = "Release"
action "Tagged" {
needs = "Test"
uses = "actions/bin/filter@master"
args = "tag v*"
}

action "Release" {
needs = "Test"
needs = "Tagged"
uses = "seantis/roots/actions/release@master"
runs = "run-release"
secrets = ["GITHUB_TOKEN"]
Expand Down

0 comments on commit b26839d

Please sign in to comment.