Skip to content

Commit

Permalink
Merge pull request #5780 from JabRef/reenable-cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
koppor committed Dec 22, 2019
2 parents be5fa3a + ba0acc5 commit 54d193e
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/cleanup_pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Cleanup after PR

on:
pull_request:
types: [closed]

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;](echo{GITHUB_REF#refs/heads/})"
id: extract_branch
- name: Delete folder on builds.jabref.org
uses: appleboy/ssh-action@v0.0.6
with:
script: rm -rf /var/www/builds.jabref.org/www/${{ steps.extract_branch.outputs.branch }}
host: builds.jabref.org
port: 9922
username: jrrsync
key: ${{ secrets.buildJabRefPrivateKey }}

0 comments on commit 54d193e

Please sign in to comment.