From 249d025f172e8b4ff07c8aa80aa8a1861238664f Mon Sep 17 00:00:00 2001 From: Arthur <48595927+ArthurZucker@users.noreply.github.com> Date: Wed, 28 Aug 2024 16:26:40 +0200 Subject: [PATCH] Update self-comment-slow-ci.yml --- .github/workflows/self-comment-slow-ci.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/self-comment-slow-ci.yml b/.github/workflows/self-comment-slow-ci.yml index e405ea8dd6bee9..0c61e848f47820 100644 --- a/.github/workflows/self-comment-slow-ci.yml +++ b/.github/workflows/self-comment-slow-ci.yml @@ -40,14 +40,14 @@ jobs: run: | echo "commit_message=$(git show -s --format=%s)" >> $GITHUB_ENV - - name: Parse comment and set machine type - if: github.event_name == 'issue_comment' - run: | - COMMENT=${{ github.event.comment.body }} - if [[ "$COMMENT" == *"--device"* ]]; then - DEVICE=$(echo "$COMMENT" | grep -oP '(?<=--device\s)\S+') - echo "machine_type=${DEVICE}" >> $GITHUB_OUTPUT - fi + - name: Parse comment and set machine type + if: github.event_name == 'issue_comment' + run: | + COMMENT=${{ github.event.comment.body }} + if [[ "$COMMENT" == *"--device"* ]]; then + DEVICE=$(echo "$COMMENT" | grep -oP '(?<=--device\s)\S+') + echo "machine_type=${DEVICE}" >> $GITHUB_OUTPUT + fi - name: Get models to run slow tests run: |