Skip to content

Commit

Permalink
Fix: error in yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
korvyashka committed Oct 16, 2024
1 parent 32d9db7 commit 043dd4a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ outputs:

runs:
using: 'composite'
env:
CLI_OUTPUT_FILENAME: '/tmp/screenly_cli_command_output.txt'
steps:
- name: Download CLI
id: download-cli
Expand All @@ -46,9 +44,9 @@ runs:
continue-on-error: true
run: |
set -o pipefail
API_TOKEN=${{ inputs.screenly_api_token }} /tmp/screenly ${{ inputs.cli_commands }} | tr '\n' ' ' >> $CLI_OUTPUT_FILENAME
API_TOKEN=${{ inputs.screenly_api_token }} /tmp/screenly ${{ inputs.cli_commands }} | tr '\n' ' ' >> /tmp/screenly_cli_command_output.txt
echo "response=$(cat /tmp/screenly_cli_command_output.txt)" >> "$GITHUB_OUTPUT"
cat $CLI_OUTPUT_FILENAME
cat /tmp/screenly_cli_command_output.txt
shell: bash

- name: Upload artifacts of failed screenly cli command
Expand All @@ -57,7 +55,7 @@ runs:
with:
name: run-cli-output
path: |
$CLI_OUTPUT_FILENAME
/tmp/screenly_cli_command_output.txt
- name: Fail if cli command failed
if: ${{ steps.run-cli.outcome != 'success' }}
Expand Down

0 comments on commit 043dd4a

Please sign in to comment.