Skip to content

Commit

Permalink
Merge branch 'main' into test-file-moved
Browse files Browse the repository at this point in the history
  • Loading branch information
npentrel authored Sep 16, 2023
2 parents e2001f8 + aff3d80 commit 383ce12
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 383ce12

Please sign in to comment.