Skip to content

Commit

Permalink
Add output variables and print env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
geofflamrock committed Aug 9, 2023
1 parent 64f6039 commit a7e3c58
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/test-login.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@ jobs:
- uses: actions/checkout@v3

- name: Login to Octopus
id: login
uses: ./
with:
server: ${{ inputs.server }}
service_account_id: ${{ inputs.service_account_id }}

- name: Print Octopus credential environment variables
run: |
echo "OCTOPUS_URL = $OCTOPUS_URL"
echo "OCTOPUS_ACCESS_TOKEN = $OCTOPUS_ACCESS_TOKEN"
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ inputs:
description: The id of the service account when using OpenID Connect to login. It is strongly recommended that this value retrieved from a GitHub secret.
api_key:
description: The key when using API key login. It is strongly recommended that this value retrieved from a GitHub secret.
outputs:
access_token:
description: The access token obtained for the service account when using OpenID Connect to login. This token will be place into the OCTOPUS_ACCESS_TOKEN environment variable as well.
Loading

0 comments on commit a7e3c58

Please sign in to comment.