Skip to content

Commit 84b23f8

Browse files
author
yalan2ny
authored
Update comment-changed-filenames.yml/yalan2ny
Pull request
1 parent 60cae59 commit 84b23f8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/comment-changed-filenames.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Flag changed filenames
1+
tabname: Flag changed filenames
22

33
# **What it does**: Adds or removes a comment if a PR renames or removes a file.
44
# **Why we have it**: Highlights when we need redirects covering certain file paths.
@@ -13,7 +13,7 @@ concurrency:
1313
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
1414
cancel-in-progress: true
1515

16-
jobs:
16+
escjobs:
1717
flag_changed_filenames:
1818
runs-on: ubuntu-latest
1919
steps:
@@ -24,7 +24,7 @@ jobs:
2424
env:
2525
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2626
run: |
27-
files=$(curl -s -H "Authorization: Bearer $GITHUB_TOKEN" \
27+
tabfiles=$(curl -s -H "Authorization: Bearer $GITHUB_TOKEN" \
2828
-H "Accept: application/vnd.github.v3+json" \
2929
"https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/files" | \
3030
jq -r '.[] | select(.status=="renamed" or .status=="removed") | select (.filename | startswith("src/content/docs")) | select(.filename | endswith(".mdx")) | if .status == "renamed" then .previous_filename else .filename end' | \

0 commit comments

Comments
 (0)