Skip to content

Commit 1df4bc9

Browse files
authored
Merge pull request #5365 from JabRef/action_cleanup
Remove the folder on build server once PR is merged
2 parents 74fb8bc + c8bb19e commit 1df4bc9

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

Diff for: .github/workflows/cleanup_pr.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Cleanup after PR
2+
3+
on:
4+
pull_request:
5+
types: [closed]
6+
7+
jobs:
8+
build:
9+
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Extract branch name
14+
shell: bash
15+
run: echo "##[set-output name=branch;](echo{GITHUB_REF#refs/heads/})"
16+
id: extract_branch
17+
- name: Delete folder on builds.jabref.org
18+
uses: appleboy/[email protected]
19+
with:
20+
script: rm -rf www/${{ steps.extract_branch.outputs.branch }}
21+
host: builds.jabref.org
22+
username: builds_jabref_org
23+
privateKey: ${{ secrets.buildJabRefPrivateKey }}
24+
port: 9922

0 commit comments

Comments
 (0)