Skip to content

Commit

Permalink
fix: add info PR numb
Browse files Browse the repository at this point in the history
  • Loading branch information
prakasa-tkpd committed Nov 6, 2023
1 parent ccde1d5 commit 1d27d30
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/monitor-changed-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,18 @@ 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
with:
files_yaml_from_source_file: .github/files-in-observation.yml

- name: Run step if test file(s) change
# 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: ${{ steps.changed-files-yaml.outputs.seo_all_changed_files }}"
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 }}"

0 comments on commit 1d27d30

Please sign in to comment.