-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (33 loc) · 980 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Test action
on:
workflow_dispatch:
push:
jobs:
test_valid:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Run action
id: action_run
uses: ./
with:
context: test_valid
state: success
description: Valid test commit status
test_invalid_description:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Run action
id: action_run
uses: ./
with:
context: test_invalid_description
state: error
description: 'A description that will exceed the maximum number of characters that can be used for a commit status description in the API. The current limit is 140 characters but might change in the future?'
continue-on-error: true
- name: Fail if action succeeded
if: steps.action_run.outcome != 'failure'
run: exit 1