From 22e5458a2ed7de0bfac26eaf53aa213963c386dd Mon Sep 17 00:00:00 2001 From: Gabriel Grubba Date: Wed, 14 May 2025 10:11:47 -0300 Subject: [PATCH 1/3] DEV: add a different check for workfloww --- .github/workflows/run-profiler.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/run-profiler.yml b/.github/workflows/run-profiler.yml index ac7143020d..e7d997e6b9 100644 --- a/.github/workflows/run-profiler.yml +++ b/.github/workflows/run-profiler.yml @@ -6,7 +6,7 @@ on: jobs: run-profiler: - if: ${{ github.event.issue.pull_request }} && contains(${{ github.event.comment.body }}, '/profile') + if: ${{ github.event.issue.pull_request }} && contains(${{ github.event.comment.body }}, '/meteor-profile') runs-on: ubuntu-latest steps: - name: Checkout code From 94f7b8dd44a365ed8713a8a51f60bf4a3093cd31 Mon Sep 17 00:00:00 2001 From: Gabriel Grubba Date: Wed, 14 May 2025 10:16:07 -0300 Subject: [PATCH 2/3] DEV: update check to not use github variables --- .github/workflows/run-profiler.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/run-profiler.yml b/.github/workflows/run-profiler.yml index e7d997e6b9..6c4162782d 100644 --- a/.github/workflows/run-profiler.yml +++ b/.github/workflows/run-profiler.yml @@ -6,7 +6,7 @@ on: jobs: run-profiler: - if: ${{ github.event.issue.pull_request }} && contains(${{ github.event.comment.body }}, '/meteor-profile') + if: ${{ github.event.issue.pull_request }} && contains(${{ github.event.comment.body }}, '/profile') runs-on: ubuntu-latest steps: - name: Checkout code @@ -16,14 +16,17 @@ jobs: node-version: 22.x - name: Run CI + env: + IS_PR: ${{ github.event.issue.pull_request }} + PR_BODY: ${{ github.event.comment.body }} run: | echo "Running meteor profiler..." git status ls value="VALUE" - echo ${{ github.event.issue.pull_request }} - echo ${{ github.event.comment.body }} - echo contains(${{ github.event.comment.body }}, '/profile') + echo $IS_PR + echo $PR_BODY + echo contains($PR_BODY, '/profile') echo "Key=$value" >> $GITHUB_ENV # Add your CI commands here From ff1661bec8b7947d77536cc26b6e3c184edfe28e Mon Sep 17 00:00:00 2001 From: Gabriel Grubba Date: Wed, 14 May 2025 10:18:30 -0300 Subject: [PATCH 3/3] DEV: playing with if statment --- .github/workflows/run-profiler.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/run-profiler.yml b/.github/workflows/run-profiler.yml index 6c4162782d..35504957bf 100644 --- a/.github/workflows/run-profiler.yml +++ b/.github/workflows/run-profiler.yml @@ -6,7 +6,7 @@ on: jobs: run-profiler: - if: ${{ github.event.issue.pull_request }} && contains(${{ github.event.comment.body }}, '/profile') + if: github.event.issue.pull_request && contains(github.event.comment.body , '/profile') runs-on: ubuntu-latest steps: - name: Checkout code