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 c6be02d commit 062fc1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ jobs:
- uses: ./sail
with:
type: 'jira'
integration_config: '{"jira_host":"https://jira.com","atlassian_user_email":"jira_username","atlassian_user_token":"jira_password"}'
# input params if you have any
2 changes: 1 addition & 1 deletion sail/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ runs:
echo "OCEAN__PORT__CLIENT_ID=${{ inputs.port_client_id }}" >> .env
echo "OCEAN__PORT__CLIENT_SECRET=${{ inputs.port_client_secret }}" >> .env
INTEGRATION_CONFIG=$(echo ${{ inputs.integration_config }} | jq -r 'to_entries[] | "OCEAN__INTEGRATION__CONFIG__\(.key)=\(.value)"')
INTEGRATION_CONFIG=$(echo ${{ inputs.integration_config }} | jq -r 'to_entries[] | "OCEAN__INTEGRATION__CONFIG__\(.key | ascii_upcase)=\(.value)"')
for CONFIG in $INTEGRATION_CONFIG; do
echo $CONFIG >> .env
done
Expand Down

0 comments on commit 062fc1d

Please sign in to comment.