From e928628366771fb33912438cd2e93a3c5dd14487 Mon Sep 17 00:00:00 2001 From: Gabriel Grubba Date: Wed, 14 May 2025 10:22:28 -0300 Subject: [PATCH 1/3] dev: playing with ci check --- .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 35504957bf..d6f6af568c 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 d7ccf7ada48aae3ff68dd3349f199763a71797c1 Mon Sep 17 00:00:00 2001 From: Gabriel Grubba Date: Wed, 14 May 2025 10:31:02 -0300 Subject: [PATCH 2/3] DEV: add variables to workglow --- .github/workflows/run-profiler.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/run-profiler.yml b/.github/workflows/run-profiler.yml index d6f6af568c..7b5a746ea2 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 @@ -14,19 +14,20 @@ jobs: - uses: actions/setup-node@v4 with: node-version: 22.x - + - name: Set ENVs + run: | + PR_NUMBER="${{ github.event.issue.number }}" + echo "PrNumber=$PR_NUMBER" >> $GITHUB_ENV - name: Run CI env: IS_PR: ${{ github.event.issue.pull_request }} PR_BODY: ${{ github.event.comment.body }} run: | echo "Running meteor profiler..." + echo $PR_NUMBER git status ls value="VALUE" - echo $IS_PR - echo $PR_BODY - echo contains($PR_BODY, '/profile') echo "Key=$value" >> $GITHUB_ENV # Add your CI commands here From e5c6d183de68c12cc49363cdecda171618d80918 Mon Sep 17 00:00:00 2001 From: Gabriel Grubba Date: Wed, 14 May 2025 10:31:46 -0300 Subject: [PATCH 3/3] DEV: better organizing code --- .github/workflows/run-profiler.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/run-profiler.yml b/.github/workflows/run-profiler.yml index 7b5a746ea2..02419268d7 100644 --- a/.github/workflows/run-profiler.yml +++ b/.github/workflows/run-profiler.yml @@ -16,6 +16,9 @@ jobs: node-version: 22.x - name: Set ENVs run: | + value="VALUE" + echo "Key=$value" >> $GITHUB_ENV + PR_NUMBER="${{ github.event.issue.number }}" echo "PrNumber=$PR_NUMBER" >> $GITHUB_ENV - name: Run CI @@ -27,8 +30,6 @@ jobs: echo $PR_NUMBER git status ls - value="VALUE" - echo "Key=$value" >> $GITHUB_ENV # Add your CI commands here - name: Comment PR