Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/home/runner/work/_temp/f53ccea3-d9b6-44b2-8ad2-365da12687e7.sh: line 1: ${ steps.read_file.outputs.contents }: bad substitution #1

Open
SaumilkumarShah1 opened this issue Dec 29, 2020 · 2 comments

Comments

@SaumilkumarShah1
Copy link

0s
Run andstor/file-reader-action@v1
File contents:
# Runs a single command using the runners shell
- name: Run a one-line script
run: echo Hello, world!

  # Runs a set of commands using the runners shell
  - name: Run a multi-line script
    run: |
      echo Add other actions to build,
      echo test, and deploy your project.

0s
Run echo "${ steps.read_file.outputs.contents }"
echo "${ steps.read_file.outputs.contents }"
shell: /bin/bash -e {0}
env:
variable1: variable1value
variable2: variable2value
/home/runner/work/_temp/f53ccea3-d9b6-44b2-8ad2-365da12687e7.sh: line 1: ${ steps.read_file.outputs.contents }: bad substitution
Error: Process completed with exit code 1.

@MaxiSantos
Copy link

The same happened to me, just remove

  - name: File contents
          run: echo "${ steps.read_file.outputs.contents }"

there is no need to echoing it

@ax-jrobb
Copy link

It should have double curly braces:

          run: echo "${{ steps.read_file.outputs.contents }}"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants