Skip to content

Commit

Permalink
Remove the folder on build server once PR is merged
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasdiez authored Sep 29, 2019
1 parent 74fb8bc commit c8bb19e
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/[email protected]
with:
script: rm -rf www/${{ steps.extract_branch.outputs.branch }}
host: builds.jabref.org
username: builds_jabref_org
privateKey: ${{ secrets.buildJabRefPrivateKey }}
port: 9922

0 comments on commit c8bb19e

Please sign in to comment.