This repository has been archived by the owner on Nov 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
97 lines (88 loc) · 3.5 KB
/
test.yaml
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
name: test
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
- run: |
cat << EOS >> "$GITHUB_STEP_SUMMARY"
Check commit statuses
- [Normal](https://github.com/gha-trigger/commit-status-action/commit/ac0a3b503e810cd8b154e85921c68c2e232012af)
- [workflow start](https://github.com/gha-trigger/commit-status-action/commit/b8f82e799e56a9fd26068350cc0e919139454b24)
- [workflow skip](https://github.com/gha-trigger/commit-status-action/commit/873f3e646708b88a17982adde41f5d3becde0e74)
- [workflow end (failure)](https://github.com/gha-trigger/commit-status-action/commit/ec3d99fd7984c4abe29f5dc7da4dac6d95444878)
- [workflow end (success)](https://github.com/gha-trigger/commit-status-action/commit/09f6d6cd3ef4d43b4f372badb89a47ab741ec9ca)
EOS
- name: normal
uses: ./
with:
github_token: ${{github.token}}
env:
# https://github.com/gha-trigger/commit-status-action/commit/ac0a3b503e810cd8b154e85921c68c2e232012af
GHA_REPOSITORY_OWNER: gha-trigger
GHA_REPOSITORY_NAME: commit-status-action
GHA_COMMIT_STATUS_SHA: ac0a3b503e810cd8b154e85921c68c2e232012af
- name: workflow start
# https://github.com/gha-trigger/commit-status-action/commit/b8f82e799e56a9fd26068350cc0e919139454b24
uses: ./
with:
github_token: ${{github.token}}
start_workflow: true
env:
GHA_REPOSITORY_OWNER: gha-trigger
GHA_REPOSITORY_NAME: commit-status-action
GHA_COMMIT_STATUS_SHA: b8f82e799e56a9fd26068350cc0e919139454b24
GHA_WORKFLOW_COMMIT_STATUS: "true"
- name: workflow skip
# https://github.com/gha-trigger/commit-status-action/commit/873f3e646708b88a17982adde41f5d3becde0e74
uses: ./
with:
github_token: ${{github.token}}
env:
GHA_REPOSITORY_OWNER: gha-trigger
GHA_REPOSITORY_NAME: commit-status-action
GHA_COMMIT_STATUS_SHA: 873f3e646708b88a17982adde41f5d3becde0e74
GHA_WORKFLOW_COMMIT_STATUS: "true"
- name: workflow end (failure)
# https://github.com/gha-trigger/commit-status-action/commit/ec3d99fd7984c4abe29f5dc7da4dac6d95444878
uses: ./
with:
github_token: ${{github.token}}
needs: |
{
"build": {
"result": "success"
},
"deploy": {
"result": "failure"
}
}
env:
GHA_REPOSITORY_OWNER: gha-trigger
GHA_REPOSITORY_NAME: commit-status-action
GHA_COMMIT_STATUS_SHA: ec3d99fd7984c4abe29f5dc7da4dac6d95444878
GHA_WORKFLOW_COMMIT_STATUS: "true"
- name: workflow end (success)
# https://github.com/gha-trigger/commit-status-action/commit/09f6d6cd3ef4d43b4f372badb89a47ab741ec9ca
uses: ./
with:
github_token: ${{github.token}}
needs: |
{
"build": {
"result": "success"
},
"deploy": {
"result": "success"
}
}
env:
GHA_REPOSITORY_OWNER: gha-trigger
GHA_REPOSITORY_NAME: commit-status-action
GHA_COMMIT_STATUS_SHA: ec3d99fd7984c4abe29f5dc7da4dac6d95444878
GHA_WORKFLOW_COMMIT_STATUS: "true"