Skip to content

Commit e96df90

Browse files
committed
Add error prefix so it shows up as an annotation on the workflow run
1 parent 61609ba commit e96df90

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/validateActions.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828

2929
- name: Tell people how to run the failing check
3030
if: failure()
31-
run: echo "The validateWorkflowSchemas check failed! To run it locally, go to the root of ${{ steps.repo.outputs.NAME }} and run <path_to_github_actions_repo>/scripts/validateWorkflowSchemas.sh"
31+
run: echo "::error::The validateWorkflowSchemas check failed! To run it locally, go to the root of ${{ steps.repo.outputs.NAME }} and run <path_to_github_actions_repo>/scripts/validateWorkflowSchemas.sh"
3232

3333
actionlint:
3434
runs-on: ubuntu-latest
@@ -44,7 +44,7 @@ jobs:
4444

4545
- name: Tell people how to run the failing check
4646
if: failure()
47-
run: echo "The actionlint check failed! To run it locally, go to the root of ${{ steps.repo.outputs.NAME }} and run <path_to_github_actions_repo>/scripts/actionlint.sh"
47+
run: echo "::error::The actionlint check failed! To run it locally, go to the root of ${{ steps.repo.outputs.NAME }} and run <path_to_github_actions_repo>/scripts/actionlint.sh"
4848

4949
validateImmutableActionRefs:
5050
runs-on: ubuntu-latest
@@ -60,4 +60,4 @@ jobs:
6060

6161
- name: Tell people how to run the failing check
6262
if: failure()
63-
run: echo "The validateImmutableActionRefs check failed! To run it locally, go to the root of ${{ steps.repo.outputs.NAME }} and run <path_to_github_actions_repo>/scripts/validateImmutableActionRefs.sh"
63+
run: echo "::error::The validateImmutableActionRefs check failed! To run it locally, go to the root of ${{ steps.repo.outputs.NAME }} and run <path_to_github_actions_repo>/scripts/validateImmutableActionRefs.sh"

0 commit comments

Comments
 (0)