Skip to content

Commit

Permalink
Update GitHub Action (#1846)
Browse files Browse the repository at this point in the history
  • Loading branch information
npentrel authored Sep 16, 2023
1 parent a2b1266 commit aff3d80
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/alias-reminder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
pull_request:

jobs:
alias-reminder:
alias_reminder:
name: Check for moved files
runs-on: ubuntu-latest
steps:
Expand All @@ -17,16 +17,14 @@ jobs:
- name: Check for moved files
shell: pwsh
id: check_files_moved
outputs:
docs_changed: ${{ steps.check_files_moved.outputs.files_moved }}
run: |
$diff = git diff -M --find-renames=10 --summary main
$SourceDiff = $diff | Where-Object { $_ -match '.md$' }
$HasDiff = $SourceDiff.Length -gt 0
Write-Host "::set-output name=files_moved::$HasDiff"
- name: Comment on PR with changed files
if: steps.check_file_changed.outputs.files_moved == 'True'
if: steps.check_files_moved.outputs.files_moved == 'True'
uses: marocchino/[email protected]
with:
recreate: true
Expand Down

0 comments on commit aff3d80

Please sign in to comment.