Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[25.0 backport] ci/validate-pr: Use ::error:: command to print errors #47703

Merged
merged 1 commit into from May 7, 2024

Conversation

vvoland
Copy link
Contributor

@vvoland vvoland commented Apr 9, 2024

This will make Github render the log line as an error.

- What I did

- How I did it

- How to verify it

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

This will make Github render the log line as an error.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
(cherry picked from commit fb92caf)
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
@vvoland vvoland added this to the 25.0.6 milestone Apr 9, 2024
@vvoland vvoland self-assigned this Apr 9, 2024
@vvoland vvoland closed this Apr 30, 2024
@vvoland vvoland reopened this Apr 30, 2024
Comment on lines 13 to 15
run: |
echo "Every PR with an \`impact/*\` label should also have an \`area/*\` label"
echo "::error::Every PR with an 'impact/*' label should also have an 'area/*' label"
exit 1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As follow-up we could look at using https://github.com/actions/github-script:

uses: actions/github-script@v7
with:
  script: |
    core.setFailed(`Every PR with an 'impact/*' label should also have an 'area/*' label`);

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any visual difference between these though?

@vvoland vvoland merged commit d16d8bd into moby:25.0 May 7, 2024
255 of 257 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants