Skip to content

Commit

Permalink
[BUG] Github Action For Sdk Suppressions (#32124)
Browse files Browse the repository at this point in the history
* add filter suppression

* parse changefiles
  • Loading branch information
JackTn authored Jan 14, 2025
1 parent a26af9a commit b262fe5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/SDK-Suppressions-Label.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@ jobs:
run: |
. eng/scripts/ChangedFiles-Functions.ps1
$changedFiles = @(Get-ChangedFiles)
echo "PR Changed files: $changedFiles"
Add-Content -Path $env:GITHUB_OUTPUT -Value "changedFiles=$changedFiles"
$changedFilesArray = $changedFiles -split ' '
$yamlFilesArray = $changedFilesArray | Where-Object { $_ -match 'sdk-suppressions\.yaml$' }
$yamlFiles = $yamlFilesArray -join ' '
echo "PR Changed sdk-suppressions.yaml files: $yamlFiles"
Add-Content -Path $env:GITHUB_OUTPUT -Value "changedFiles=$yamlFiles"
- name: Get GitHub PullRequest Context
uses: actions/github-script@v7
Expand Down

0 comments on commit b262fe5

Please sign in to comment.