Skip to content

Commit b97e09c

Browse files
authored
Restore more workflows (#54917)
1 parent 2f71aa5 commit b97e09c

1 file changed

Lines changed: 5 additions & 15 deletions

File tree

.github/workflows/validate-github-github-docs-urls.yml

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,6 @@ jobs:
3535
steps:
3636
- name: Check out repo's default branch
3737
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
38-
with:
39-
# Picking this number is a "best guess". If we make it too large,
40-
# the checkout will take potentially unnecessariily long.
41-
# This reduces the chance that tj-actions/changed-files has to
42-
# fetch deeper history. But if it needs to, it will.
43-
fetch-depth: 10
44-
4538
- uses: ./.github/actions/node-npm-setup
4639

4740
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
@@ -108,23 +101,20 @@ jobs:
108101
# First, gather the URLs that were relevant
109102
- name: Get changed content/data files
110103
if: ${{ github.event_name == 'pull_request' }}
111-
id: changed-files
112-
uses: tj-actions/changed-files@40853de9f8ce2d6cfdc73c1b96f14e22ba44aec4 # v45.0.0
104+
id: changed_files
105+
uses: ./.github/actions/get-changed-files
113106
with:
114-
# No need to escape the file names because we make the output of
115-
# tj-actions/changed-files be set as an environment variable. Not
116-
# as a direct input to the line of bash that uses it.
117-
safe_output: false
118107
files: |
119108
content/**
109+
token: ${{ secrets.GITHUB_TOKEN }}
120110

121111
- name: Generate PR comment
122-
if: ${{ github.event_name == 'pull_request' && steps.changed-files.outputs.any_changed == 'true' }}
112+
if: ${{ github.event_name == 'pull_request' && steps.changed_files.outputs.filtered_changed_files }}
123113
env:
124114
# Make it an environment variable so that its value doesn't need to be escaped.
125115
# See https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable
126116
CHANGED_FILES: |-
127-
${{ steps.changed-files.outputs.all_changed_files }}
117+
${{ steps.changed_files.outputs.filtered_changed_files }}
128118
GITHUB_TOKEN: ${{ secrets.DOCS_BOT_PAT_WRITEORG_PROJECT }}
129119
ISSUE_NUMBER: ${{ github.event.pull_request.number }}
130120
REPOSITORY: ${{ github.repository }}

0 commit comments

Comments
 (0)