Skip to content

Commit

Permalink
chore: repro 209
Browse files Browse the repository at this point in the history
  • Loading branch information
thollander committed Apr 20, 2023
1 parent b4c3fa9 commit 3aee88f
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/repro.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
on:
push:
branch:
- '*'

jobs:
test_strings:
name: test strings
runs-on: ubuntu-latest
steps:
- name: create string
run: |
MY_STRING=$(cat << EOF
first line
second line
third line
EOF
)
echo "::set-output name=content::$MY_STRING"
id: my_string

- name: display string
run: |
echo "The string is: ${{ steps.my_string.outputs.content }}"
- name: create string
run: |
MY_STRING=$(cat << EOF
first line
second line
third line
EOF
)
echo "MY_STRING<<EOF" >> $GITHUB_ENV
echo "$MY_STRING" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
id: my_string
- name: display string
run: |
echo "The string is: ${{ env.MY_STRING }}"

0 comments on commit 3aee88f

Please sign in to comment.