We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 74fb8bc + c8bb19e commit 1df4bc9Copy full SHA for 1df4bc9
.github/workflows/cleanup_pr.yml
@@ -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