Skip to content

Commit

Permalink
Metadata Composite Script Entrypoint Dynamic Path
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanielvarona committed May 7, 2024
1 parent c332c94 commit 36ae7cb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Define the GitHub Action
name: Pritunl Client GitHub Action
description: Automate secure Pritunl VPN in GitHub Actions! Establish secure connections with Pritunl Client modes OpenVPN, and WireGuard.

# Define inputs for the Action
inputs:
profile-file:
description: Pritunl Profile Key file
Expand Down Expand Up @@ -47,6 +49,7 @@ inputs:
required: false
default: 'true'

# Define outputs for the Action
outputs:
client-id:
description: Primary Client ID (string, bash variable)
Expand All @@ -56,6 +59,7 @@ outputs:
description: All Client IDs and Names (JSON array)
value: ${{ steps.pritunl-client.outputs.client-ids }}

# Define the Action's workflow
runs:
using: "composite"
steps:
Expand All @@ -73,10 +77,9 @@ runs:
PRITUNL_ESTABLISHED_CONNECTION_TIMEOUT: ${{ inputs.established-connection-timeout }}
PRITUNL_CONCEALED_OUTPUTS: ${{ inputs.concealed-outputs }}
shell: bash
run: |
# pritunl-client.sh
"${GITHUB_ACTION_PATH}$([[ "${RUNNER_OS}" == "Windows" ]] && echo '\' || echo '/')pritunl-client.sh"
run: ./pritunl-client.sh

# Define branding for the Action
branding:
icon: server
color: gray-dark

0 comments on commit 36ae7cb

Please sign in to comment.