build(deps): bump peter-evans/create-pull-request from 6 to 7 #182
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches-ignore: | |
- index | |
pull_request: | |
jobs: | |
validate: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/install-yaml | |
- name: Validate registry | |
uses: Amadevus/pwsh-script@v2 | |
with: | |
script: | | |
$ErrorActionPreference = 'Continue' | |
$entries = @() | |
if ($github.base_ref) { | |
# we are in a pull request, let's only check changed entries | |
$baseRefBranch = 'refs/heads/base' | |
git fetch --depth=1 origin "+$($github.base_ref):$baseRefBranch" | Out-Host | |
# get a list of files changed in PR | |
$entries = git diff-tree --no-commit-id --name-only -r HEAD $baseRefBranch | |
Write-Host "Changed files:" | |
$entries | Out-Host | |
} | |
./.github/scripts/Validate-Registry.ps1 -Entries $entries -Token $github.token |