From fe1e15083860a7a09b35439cd4fe7cdcf56fcaff Mon Sep 17 00:00:00 2001 From: prakasa-tkpd Date: Mon, 6 Nov 2023 16:15:07 +0700 Subject: [PATCH] fix: add PR numb in message --- .github/workflows/monitor-changed-files.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/monitor-changed-files.yml b/.github/workflows/monitor-changed-files.yml index 90ea372..3bdc7dc 100644 --- a/.github/workflows/monitor-changed-files.yml +++ b/.github/workflows/monitor-changed-files.yml @@ -21,10 +21,6 @@ jobs: name: Checkout uses: actions/checkout@v3 - - name: Get Pull Request Number - id: pr - run: echo "::set-output name=pull_request_number::$(gh pr view --json number -q .number || echo "")" - - name: Get all test, doc and src files that have changed id: changed-files-yaml uses: tj-actions/changed-files@v40 @@ -35,4 +31,4 @@ jobs: # if: steps.changed-files-yaml.outputs.seo_any_changed == 'true' run: | echo "One or more SEO file(s) has changed." - echo "List all the files that have changed in PR ${{ steps.pr.outputs.pull_request_number }}: ${{ steps.changed-files-yaml.outputs.seo_all_changed_files }}" + echo "List all the files that have changed in PR ${{ github.event.pull_request.number }}: ${{ steps.changed-files-yaml.outputs.seo_all_changed_files }}"