From e098ec684cf5b66cd50d1af5206b2e6305826efa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estev=C3=A3o=20Soares=20dos=20Santos?= Date: Thu, 31 Mar 2022 02:44:15 +0100 Subject: [PATCH] test: fix name of browserstack name being too long --- .github/workflows/browserstack.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/browserstack.yml b/.github/workflows/browserstack.yml index 2f0e1e0..8c9908f 100644 --- a/.github/workflows/browserstack.yml +++ b/.github/workflows/browserstack.yml @@ -7,7 +7,7 @@ on: branches: [ master, develop ] env: - COMMIT_MSG: ${{ github.event.head_commit.message }} + COMMIT_MSG: 'printf "%s" "${{ github.event.head_commit.message }}" | head -n 1' # Only the first line of commit msg jobs: ubuntu-job: @@ -32,7 +32,7 @@ jobs: uses: martinbeentjes/npm-get-version-action@v1.1.0 - name: '📝 Print build version and commit msg' - run: echo ${{ steps.package-version.outputs.current-version}}-${{ github.run_id }} $COMMIT_MSG + run: 'printf "version: %s\nbuild:%s\message:%s\n" "${{ steps.package-version.outputs.current-version}}" "${{ github.run_id }}" "$COMMIT_MSG"' - name: '📱 BrowserStack Env Setup' # Invokes the setup-env action uses: browserstack/github-actions/setup-env@master