aboutsummaryrefslogtreecommitdiff
path: root/.github/main.workflow
diff options
context:
space:
mode:
authorHarsh Shandilya <msfjarvis@gmail.com>2019-04-25 09:13:12 +0530
committerHarsh Shandilya <msfjarvis@gmail.com>2019-04-25 09:13:12 +0530
commit655b3a11f4eb448bf68a49d1f8051e0c0d100ef4 (patch)
tree7c62cca0a9db8e958c4d0875f774a7d7227b1a9b /.github/main.workflow
parente54010906f3cfc91ed41a044d44da548a60c9b0f (diff)
Add github action to automatically delete merged branches
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
Diffstat (limited to '.github/main.workflow')
-rw-r--r--.github/main.workflow9
1 files changed, 9 insertions, 0 deletions
diff --git a/.github/main.workflow b/.github/main.workflow
new file mode 100644
index 00000000..8def35fb
--- /dev/null
+++ b/.github/main.workflow
@@ -0,0 +1,9 @@
+workflow "on pull request merge, delete the branch" {
+ on = "pull_request"
+ resolves = ["branch cleanup"]
+}
+
+action "branch cleanup" {
+ uses = "jessfraz/branch-cleanup-action@master"
+ secrets = ["GITHUB_TOKEN"]
+}