-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove the folder on build server once PR is merged
- Loading branch information
1 parent
74fb8bc
commit c8bb19e
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |