Skip to content

Redirects github action #3

Redirects github action

Redirects github action #3

Workflow file for this run

name: add-redirects
on:
pull_request:
paths:
- "source/**"
jobs:
get-redirects-renamed:
name: Get Renamed Files
runs-on: ubuntu-latest
permissions:
issues: write
contents: write
pull-requests: write
repository-projects: write
steps:
- uses: actions/checkout@v4
- name: Get renamed files
id: changed-files
# pin to a specific commit to ensure stability
uses: tj-actions/changed-files@c65cd883420fd2eb864698a825fc4162dd94482c
with:
include_all_old_new_renamed_files: 'true'
write_output_files: 'true'
- name: Write renamed files to output
run: |
printf "%s\n" "${{ steps.changed_files.outputs.all_old_new_renamed_files }}" > .github/outputs/renamed_files.txt
- name: Verify the contents of renamed_files.txt
run: |
cat .github/outputs/renamed_files.txt