-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (39 loc) · 1.16 KB
/
multiline_output.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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" | tee -a $GITHUB_OUTPUT
echo "$stdout" | tee -a $GITHUB_OUTPUT
echo "EOF" | tee -a $GITHUB_OUTPUT
- 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>
```
${{ steps.multiline.outputs.stdout }}
```
</details>