Skip to content

Commit

Permalink
Test multiline output
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelburnham committed Apr 2, 2024
1 parent 0d18274 commit 7147c31
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/multiline_output.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Tests

on:
pull_request:
branches:
- "**"

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
integration-tests-examples:
name: Build integration tests and examples
runs-on: buildjet-16vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v4
with:
repository: lurk-lab/ci-workflows
- uses: ./.github/actions/ci-env
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Multiline output
id: multiline
run: |
printf "Multiline\noutput" >> Cargo.toml
stdout=$(git diff)
echo "stdout<<EOF" >> $GITHUB_OUTPUT
echo "$stdout" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
- run: |
echo "${{ steps.multiline.outputs.stdout }}"
- name: Comment on PR
uses: peter-evans/create-or-update-comment@v4
with:
issue-number: ${{ github.event.number }}
body: |
<details>
<summary>Git diff output</summary>
```bash
${{ steps.git-diff.outputs.stdout }}
```
</details>

0 comments on commit 7147c31

Please sign in to comment.