From e3acaff59b1498d80ab90845a7ebf3d231eea05f Mon Sep 17 00:00:00 2001 From: Ghislain B Date: Mon, 25 Sep 2023 17:28:09 -0400 Subject: [PATCH] chore: fix CI invalid yml file format - see this GitHub [comment](https://github.com/actions/runner/issues/1019#issuecomment-808880611) --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index dbcc725e1..92fad913e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -53,7 +53,7 @@ jobs: run: yarn test:ci - name: Upload Jest coverage to Codecov - if: "!contains(github.event.head_commit.message, 'chore: release')" + if: ${{ !contains(github.event.head_commit.message, format('chore{0} release', ':')) }} uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -85,7 +85,7 @@ jobs: - name: Deploy to gh-pages if: | github.ref == 'refs/heads/master' && - contains(github.event.head_commit.message, 'chore: release') || contains(github.event.head_commit.message, '[update github demo]') + contains(github.event.head_commit.message, format('chore{0} release', ':')) || contains(github.event.head_commit.message, '[update github demo]') uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }}