1
0
mirror of synced 2025-12-23 03:44:00 -05:00

Restore more workflows (#54917)

This commit is contained in:
Hector Alfaro
2025-03-19 17:29:47 -04:00
committed by GitHub
parent 2f71aa5811
commit b97e09cf11

View File

@@ -35,13 +35,6 @@ jobs:
steps: steps:
- name: Check out repo's default branch - name: Check out repo's default branch
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
# Picking this number is a "best guess". If we make it too large,
# the checkout will take potentially unnecessariily long.
# This reduces the chance that tj-actions/changed-files has to
# fetch deeper history. But if it needs to, it will.
fetch-depth: 10
- uses: ./.github/actions/node-npm-setup - uses: ./.github/actions/node-npm-setup
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
@@ -108,23 +101,20 @@ jobs:
# First, gather the URLs that were relevant # First, gather the URLs that were relevant
- name: Get changed content/data files - name: Get changed content/data files
if: ${{ github.event_name == 'pull_request' }} if: ${{ github.event_name == 'pull_request' }}
id: changed-files id: changed_files
uses: tj-actions/changed-files@40853de9f8ce2d6cfdc73c1b96f14e22ba44aec4 # v45.0.0 uses: ./.github/actions/get-changed-files
with: with:
# No need to escape the file names because we make the output of
# tj-actions/changed-files be set as an environment variable. Not
# as a direct input to the line of bash that uses it.
safe_output: false
files: | files: |
content/** content/**
token: ${{ secrets.GITHUB_TOKEN }}
- name: Generate PR comment - name: Generate PR comment
if: ${{ github.event_name == 'pull_request' && steps.changed-files.outputs.any_changed == 'true' }} if: ${{ github.event_name == 'pull_request' && steps.changed_files.outputs.filtered_changed_files }}
env: env:
# Make it an environment variable so that its value doesn't need to be escaped. # Make it an environment variable so that its value doesn't need to be escaped.
# See https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable # See https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable
CHANGED_FILES: |- CHANGED_FILES: |-
${{ steps.changed-files.outputs.all_changed_files }} ${{ steps.changed_files.outputs.filtered_changed_files }}
GITHUB_TOKEN: ${{ secrets.DOCS_BOT_PAT_WRITEORG_PROJECT }} GITHUB_TOKEN: ${{ secrets.DOCS_BOT_PAT_WRITEORG_PROJECT }}
ISSUE_NUMBER: ${{ github.event.pull_request.number }} ISSUE_NUMBER: ${{ github.event.pull_request.number }}
REPOSITORY: ${{ github.repository }} REPOSITORY: ${{ github.repository }}