From 3034f7574d35c26804a8d675c926a16751af11e7 Mon Sep 17 00:00:00 2001 From: Ian Harrigan Date: Wed, 10 Aug 2022 12:49:49 +0200 Subject: [PATCH] remove newlines from commit messages --- .github/workflows/build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1024c9cbd..dbcc3dea7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,4 +15,5 @@ jobs: - uses: actions/checkout@v1 - name: Dispatch event to ${{ matrix.backend }} run: | - curl --fail -X POST https://api.github.com/repos/haxeui/${{ matrix.backend }}/dispatches -H 'Accept: application/vnd.github.everest-preview+json' -H 'Authorization: Bearer ${{ secrets.GH_TOKEN }}' --data "{\"event_type\": \"haxeui-core push: ${{ github.event.head_commit.message }}\"}" + export commit_message="$(echo "${{ github.event.head_commit.message }}"|tr -d '\n')" + curl --fail -X POST https://api.github.com/repos/haxeui/${{ matrix.backend }}/dispatches -H 'Accept: application/vnd.github.everest-preview+json' -H 'Authorization: Bearer ${{ secrets.GH_TOKEN }}' --data "{\"event_type\": \"haxeui-core push: $commit_message\"}"