Skip to content

Commit

Permalink
checking .env file
Browse files Browse the repository at this point in the history
  • Loading branch information
yairsimantov20 committed Feb 20, 2024
1 parent a7e3440 commit 5b0e039
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ jobs:
- uses: ./sail
with:
type: 'jira'
# port_client_id: 'port_client_id'
# port_client_secret: 'port_client_secret'
env:
OCEAN__INTEGRATION__CONFIG__JIRA__HOST: 'https://jira.com'
OCEAN__INTEGRATION__CONFIG__JIRA__ATLASSIAN_USER_EMAIL: 'jira_username'
OCEAN__INTEGRATION__CONFIG__JIRA__ATLASSIAN_USER_TOKEN: 'jira_password'
# input params if you have any
OCEAN__INTEGRATION__CONFIG__JIRA__ATLASSIAN_USER_TOKEN: 'jira_password'
15 changes: 14 additions & 1 deletion sail/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,24 @@ outputs:
runs:
using: "composite"
steps:
- name: validate inputs
shell: bash
run: |
- run: |
[[ "${{ inputs.type }}" ]] || { echo "type input is empty" ; exit 1; }
[[ "${{ inputs.port_client_id }}" ]] || { echo "inputs.port_client_id input is empty" ; exit 1; }
[[ "${{ inputs.port_client_secret }}" ]] || { echo "inputs.port_client_secret input is empty" ; exit 1; }
- name: ocean-sail
run: |
image_name="ghcr.io/port-labs/port-ocean-${{ inputs.type }}:${{ inputs.version }}"
env > .env
echo "OCEAN__EVENT_LISTENER={\"type\":\"${{ inputs.event_listener_type }}\"}" >> .env
echo "OCEAN__INITIALIZE_PORT_RESOURCES=${{ inputs.initialize_port_resources }}" >> .env
echo "OCEAN__PORT__CLIENT_ID=${{ inputs.port_client_id }}" >> .env
echo "OCEAN__PORT__CLIENT_SECRET=${{ inputs.port_client_secret }}" >> .env
env >> .env
cat .env
Expand Down

0 comments on commit 5b0e039

Please sign in to comment.