Skip to content

Commit 071ee70

Browse files
committed
docs: Updated documentation to reflect changes
1 parent a143c35 commit 071ee70

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434

3535
- name: Upload VPN logs
3636
if: always()
37-
uses: actions/upload-artifact@v2
37+
uses: actions/upload-artifact@v4
3838
with:
3939
name: vpn-logs
40-
path: openvpn.log
40+
path: /tmp/openvpn.log

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22

33
The Sonassi OpenVPN Connection GitHub Action allows you to establish a secure connection to a Sonassi VPN server within your GitHub Actions workflow.
44

5-
To use this action, you need to provide the necessary configuration details for your Sonassi VPN server. This includes the configuration file, certificate, and certificate name.
5+
To use this action, you need to provide the necessary configuration details for your Sonassi VPN server. This includes the configuration file, certificate, certificate name, and optional tmp_dir name.
66

77
## Inputs
88

99
- `config`: The config file provided in the VPN bundle for Linux. (required)
1010
- `certificate`: The p12 file provided in the VPN bundle for Linux. (required)
1111
- `certificate_name`: The p12 filename as configured inside the config file (required)
12+
- `tmp_dir`: The directory to save the certificate and config to defaults to `/tmp`
1213

1314
## Example Usage
1415

@@ -19,17 +20,18 @@ To use this action, you need to provide the necessary configuration details for
1920
config: ${{ secrets.VPN_SERVER_CONFIG }}
2021
certificate: ${{ secrets.VPN_CERTIFICATE }}
2122
certificate_name: ${{ secrets.VPN_CERTIFICATE_NAME }}
23+
tmp_dir: "/tmp"
2224

2325
- name: Wait for VPN to connect
2426
if: success()
2527
run: until ping -c 1 -W 5 172.16.0.61; do sleep 2; done
2628

2729
- name: Upload VPN logs
2830
if: always()
29-
uses: actions/upload-artifact@v2
31+
uses: actions/upload-artifact@v4
3032
with:
3133
name: vpn-logs
32-
path: openvpn.log
34+
path: /tmp/openvpn.log
3335
```
3436
3537
Make sure to store your sensitive information (such as the config, certificate, and certificate_name) as secrets in your GitHub repository to keep them secure.

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ inputs:
1616
default: "certificate.p12"
1717
tmp_dir:
1818
description: "The temporary directory to store the OpenVPN configuration and certificate"
19-
required: true
19+
required: false
2020
default: "/tmp"
2121
runs:
2222
using: "node20"

0 commit comments

Comments
 (0)