node/placement: use predefined error for empty netmap #2273
Workflow file for this run
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: Configuration check | |
on: | |
pull_request: | |
branches: | |
- master | |
- support/** | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: config-check | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Get changed config-related files | |
id: config-diff | |
uses: tj-actions/changed-files@v42 | |
with: | |
files: | | |
config/** | |
cmd/neofs-node/config/** | |
- name: Get changed doc files | |
id: docs-diff | |
uses: tj-actions/changed-files@v42 | |
with: | |
files: docs/** | |
- name: Fail if config files are changed but the documentation is not updated | |
if: steps.config-diff.outputs.any_changed == 'true' && steps.docs-diff.outputs.any_changed == 'false' | |
uses: actions/github-script@v7 | |
with: | |
script: | | |
core.setFailed('Documentation has not been updated') |