From 0cc97338f37a989eaa32be6037e5b358bb9391f7 Mon Sep 17 00:00:00 2001 From: Sergei Petrosian Date: Wed, 24 Jul 2024 19:33:04 +0200 Subject: [PATCH] ci: Fix tft workflow * Fix memory tests/provision.fmf does not exist * Add CONTRIBUTOR to the list of allowed author_association Signed-off-by: Sergei Petrosian --- .github/workflows/tft.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tft.yml b/.github/workflows/tft.yml index 8f7c813..4a2449d 100644 --- a/.github/workflows/tft.yml +++ b/.github/workflows/tft.yml @@ -20,7 +20,8 @@ jobs: if: | github.event.issue.pull_request && (contains(github.event.comment.body, '[citest]') || contains(github.event.comment.body, '[citest-all]')) - && (contains(fromJson('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.comment.author_association) || contains('systemroller', github.event.comment.user.login)) + && (contains(fromJson('["OWNER", "MEMBER", "COLLABORATOR", "CONTRIBUTOR"]'), github.event.comment.author_association) + || contains('systemroller', github.event.comment.user.login)) runs-on: ubuntu-latest outputs: supported_platforms: ${{ steps.supported_platforms.outputs.supported_platforms }} @@ -51,7 +52,9 @@ jobs: - name: Get memory id: memory run: | - memory=$(grep -rPo ' m: \K(.*)' tests/provision.fmf) + if [ -d tests/provision.fmf ]; then + memory=$(grep -rPo ' m: \K(.*)' tests/provision.fmf) + fi if [ -n "$memory" ]; then echo "memory=$memory" >> $GITHUB_OUTPUT else