mirror of
https://github.com/FlipsideCrypto/tools.git
synced 2026-02-06 10:46:47 +00:00
Delete .github/actions/openvpn-kill/action.yml
This commit is contained in:
parent
ccf602afe6
commit
bc56068263
35
.github/actions/openvpn-kill/action.yml
vendored
35
.github/actions/openvpn-kill/action.yml
vendored
@ -1,35 +0,0 @@
|
||||
name: 'openvpn-kill'
|
||||
description: 'Kill a running connection to an OpenVPN server'
|
||||
inputs:
|
||||
openvpn-log-dir:
|
||||
description: 'OpenVPN log directory'
|
||||
required: false
|
||||
default: ""
|
||||
outputs:
|
||||
openvpn-log-dir:
|
||||
description: 'OpenVPN log directory'
|
||||
value: ${{ steps.kill-openvpn.outputs.openvpn-log-dir }}
|
||||
|
||||
runs:
|
||||
using: 'composite'
|
||||
steps:
|
||||
- name: Kill VPN connection
|
||||
id: kill-openvpn
|
||||
shell: bash
|
||||
run: |
|
||||
OPENVPN_LOG_DIR="${{ inputs.openvpn-log-dir }}"
|
||||
|
||||
if [[ ! -z "$OPENVPN_LOG_DIR" ]]; then
|
||||
OPENVPN_LOG_DIR="${RUNNER_TEMP}/logs"
|
||||
mkdir -p "$OPENVPN_LOG_DIR"
|
||||
fi
|
||||
|
||||
sudo chmod -Rv 777 "$OPENVPN_LOG_DIR"
|
||||
echo "::set-output name=openvpn-log-dir::${OPENVPN_LOG_DIR}"
|
||||
|
||||
sudo killall openvpn
|
||||
- name: Upload VPN logs
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: VPN logs
|
||||
path: ${{ steps.kill-openvpn.outputs.openvpn-log-dir }}
|
||||
Loading…
Reference in New Issue
Block a user