diff --git a/.github/workflows/multiline_output.yml b/.github/workflows/multiline_output.yml new file mode 100644 index 0000000..23e54ef --- /dev/null +++ b/.github/workflows/multiline_output.yml @@ -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<> $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: | +
+ Git diff output + + ```bash + ${{ steps.git-diff.outputs.stdout }} + ``` + +