From bfbdd27350a88620caf36ea71bc1395a1e424d86 Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Sat, 9 Jan 2021 00:05:39 +0100 Subject: [PATCH] workflows: more robust check for service account commits --- .github/workflows/master.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 7c28bcefe6..d49f82c235 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -82,7 +82,7 @@ jobs: # We can't re-use the output from the above step, but we'll have a guaranteed node_modules cache and # only run the build steps that are necessary for publishing release: - if: github.event.commits[0].author.username == 'backstage-service' && contains(github.event.head_commit.message, 'from backstage/changeset-release/master') + if: contains(github.event.commits.*.author.username, 'backstage-service') && contains(github.event.head_commit.message, 'from backstage/changeset-release/master') needs: build runs-on: ubuntu-latest