Repository navigation
fix: set outputs through set-output; give specific advice when missing API key - #25
Merged
Merged
Conversation
setOutput only printed "set-output <name> <value>" to stdout, which EAS Workflows ignores. EAS reads a step's outputs from files in $__EXPO_STEPS_OUTPUTS_DIR, which its set-output command writes (the value in base64), so console_url, app_binary_id, upload_status and flow_results all came back empty. Run set-output (execFileSync, no shell, so no quoting). If it can't be started (not on PATH, or a value too long for one argument, like a large run's flow_results on Linux) and the outputs directory is set, write the file the way set-output does. An empty value, which set-output rejects, is written directly too. Outside EAS, print the line as before. A failing set-output logs a warning instead of failing the run.
The error said to pass the key in the step's env: block as
${{ secrets.DEVICE_CLOUD_API_KEY }}, which is GitHub Actions syntax: EAS
Workflows have no secrets context. A job gets the EAS environment
variables of the environment it runs in, so say to store the key as an
EAS environment variable with secret visibility there, with the same
eas env:create command as the README.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.