File tree 1 file changed +11
-6
lines changed
1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -24,19 +24,24 @@ jobs:
24
24
fi
25
25
26
26
- name : Creating config file
27
- env :
27
+ env :
28
28
ACTION : ${{ github.event.action }}
29
+ MERGED : ${{ github.event.pull_request.merged }}
29
30
run : |
30
31
touch ./hacktoberfest-labeler.yml
31
-
32
- if [ "$ACTION" != "closed" ]; then
32
+ echo "ACTION Value = $ACTION\n\n"
33
+ echo "MERGED Value = $MERGED\n\n"
34
+
35
+ if [ "$ACTION" == "opened" ]; then
33
36
echo "hacktoberfest:" > hacktoberfest-labeler.yml
34
- else
37
+ elif [ "$MERGED" == "true" ]; then
35
38
echo "hacktoberfest-accepted:" > hacktoberfest-labeler.yml
39
+ else
40
+ echo "invalid:" > hacktoberfest-labeler.yml
36
41
fi
37
42
echo "- changed-files:" >> hacktoberfest-labeler.yml
38
43
echo " - any-glob-to-any-file: '**'" >> hacktoberfest-labeler.yml
39
-
44
+
40
45
echo "Created the config file:"
41
46
echo "------------------------"
42
47
cat ./hacktoberfest-labeler.yml
47
52
contains(github.event.pull_request.labels.*.name, 'hacktoberfest')
48
53
49
54
with :
50
- configuration-path : ./hacktoberfest-labeler.yml
55
+ configuration-path : ./hacktoberfest-labeler.yml
You can’t perform that action at this time.
0 commit comments