Skip to content

Commit

Permalink
Merge pull request #110 from nathanielvarona/documentation-examples-f…
Browse files Browse the repository at this point in the history
…ixes

Examples Fixes
  • Loading branch information
nathanielvarona authored Oct 24, 2023
2 parents 769c1e3 + 6ddbf8b commit 8bde8de
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,13 @@ You can use the full profile name as well, it is also acceptable.
### And even Manually Controlling the Connection

```yml
- name: Setup Pritunl Profile
id: pritunl-connection # A `Setup Step ID` has been added as a reference identifier for the output `client-id`.
uses: nathanielvarona/pritunl-client-github-action@v1
with:
profile-file: ${{ secrets.PRITUNL_PROFILE_FILE }}
start-connection: false # Do not establish a connection in this step.

- name: Starting a VPN Connection Manually
shell: bash
run: |
Expand Down Expand Up @@ -248,7 +255,6 @@ You can use the full profile name as well, it is also acceptable.
shell: bash
run: |
pritunl-client stop "$(echo '${{ steps.pritunl-connection.outputs.client-id }}' | jq -r 'sort_by(.name) | .[0].id')"
```
> Kindly check the GitHub Action workflow file `.github/workflows/connection-tests-complete.yml` for the complete working example.
Expand Down

0 comments on commit 8bde8de

Please sign in to comment.