Skip to content
This repository was archived by the owner on Feb 3, 2025. It is now read-only.

Commit 213e5a8

Browse files
authoredFeb 15, 2024··
Create failed.yaml
1 parent f9986df commit 213e5a8

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
 

‎.github/workflows/failed.yaml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Demo Failed Action
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
jobs:
10+
fail_job:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Echo Failed Message
15+
run: echo "The workflow has failed."
16+
17+
- name: Set Failed Status
18+
if: failure()
19+
run: echo "::set-output name=status::failed"

0 commit comments

Comments
 (0)
This repository has been archived.