Skip to content

Commit

Permalink
Merge pull request #5365 from JabRef/action_cleanup
Browse files Browse the repository at this point in the history
Remove the folder on build server once PR is merged
  • Loading branch information
koppor authored Sep 29, 2019
2 parents 74fb8bc + c8bb19e commit 1df4bc9
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 1df4bc9

Please sign in to comment.