File tree 6 files changed +10
-10
lines changed
6 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ Optionally supply a pattern of tags to match:
57
57
58
58
### deleted_tag
59
59
60
- Continue if the event which run on 'delete' is a tag.
60
+ Continue if the event deletes a tag.
61
61
62
62
``` workflow
63
63
action "tag-filter" {
@@ -91,7 +91,7 @@ Optionally supply a pattern of branches to match:
91
91
92
92
### deleted_branch
93
93
94
- Continue if the event which run on 'delete' is a branch.
94
+ Continue if the event deletes a branch.
95
95
96
96
``` workflow
97
97
action "branch-filter" {
Original file line number Diff line number Diff line change 5
5
pattern=" ${1:-* } "
6
6
7
7
if [ -z " $GITHUB_EVENT_PATH " ]; then
8
- echo " \$ GITHUB_EVENT_PATH" is not set
8
+ echo " \$ GITHUB_EVENT_PATH is not set"
9
9
exit 1
10
10
fi
11
11
Original file line number Diff line number Diff line change @@ -12,10 +12,10 @@ case "$DELETE_EVENT_REF" in
12
12
exit 1
13
13
;;
14
14
$pattern )
15
- echo " matches $pattern "
15
+ echo " $DELETE_EVENT_REF matches $pattern "
16
16
exit 0
17
17
;;
18
18
* )
19
- echo " does not match $pattern "
19
+ echo " $DELETED_EVENT_REF does not match $pattern "
20
20
exit 78
21
21
esac
Original file line number Diff line number Diff line change 5
5
pattern=" ${1:-* } "
6
6
7
7
if [ -z " $GITHUB_EVENT_PATH " ]; then
8
- echo " \$ GITHUB_EVENT_PATH" is not set
8
+ echo " \$ GITHUB_EVENT_PATH is not set"
9
9
exit 1
10
10
fi
11
11
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ PATH="$PATH:$BATS_TEST_DIRNAME/../bin"
6
6
7
7
export GITHUB_EVENT_PATH=" $BATS_TEST_DIRNAME /fixtures/delete_branch_event.json"
8
8
9
- @test " deleted_branch: without a event file" {
9
+ @test " deleted_branch: without an event file" {
10
10
unset GITHUB_EVENT_PATH
11
11
run deleted_branch
12
12
[ " $status " -eq 1 ]
@@ -35,5 +35,5 @@ export GITHUB_EVENT_PATH="$BATS_TEST_DIRNAME/fixtures/delete_branch_event.json"
35
35
@test " deleted_branch: does not match" {
36
36
run deleted_branch release-*
37
37
[ " $status " -eq 78 ]
38
- [ " $output " = " does not match release-*" ]
38
+ [ " $output " = " feature-new-command does not match release-*" ]
39
39
}
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ PATH="$PATH:$BATS_TEST_DIRNAME/../bin"
6
6
7
7
export GITHUB_EVENT_PATH=" $BATS_TEST_DIRNAME /fixtures/delete_tag_event.json"
8
8
9
- @test " deleted_tag: without a event file" {
9
+ @test " deleted_tag: without an event file" {
10
10
unset GITHUB_EVENT_PATH
11
11
run deleted_tag
12
12
[ " $status " -eq 1 ]
@@ -35,5 +35,5 @@ export GITHUB_EVENT_PATH="$BATS_TEST_DIRNAME/fixtures/delete_tag_event.json"
35
35
@test " deleted_tag: does not match" {
36
36
run deleted_tag release-*
37
37
[ " $status " -eq 78 ]
38
- [ " $output " = " does not match release-*" ]
38
+ [ " $output " = " v1.2.3 does not match release-*" ]
39
39
}
You can’t perform that action at this time.
0 commit comments