Skip to content

Commit

Permalink
feat: Return directories path in Flank Github action
Browse files Browse the repository at this point in the history
  • Loading branch information
piotradamczyk5 authored and mergify-bot committed Mar 10, 2021
1 parent ca003ea commit 6276818
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ inputs:
flank_configuration_file:
description: 'Flank configuration file'
required: true
outputs:
local_results_directory:
description: "Random number"
value: ${{ steps.output_paths.outputs.local_results_directory }}
gcloud_results_directory:
description: "Random number"
value: ${{ steps.output_paths.outputs.gcloud_results_directory }}
runs:
using: "composite"
steps:
Expand All @@ -34,3 +41,9 @@ runs:
run: |
java -jar flank.jar firebase test ${{ inputs.platform }} run -c=${{ inputs.flank_configuration_file }}
shell: bash
- id: output_paths
run: |
file_path=$(find -name "flank-links.log")
echo "::set-output name=local_results_directory::$(sed -n '1p' < $file_path)"
echo "::set-output name=gcloud_results_directory::$(sed -n '2p' < $file_path)"
shell: bash

0 comments on commit 6276818

Please sign in to comment.