forked from Ikalus1988/MisakaNet
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (28 loc) · 826 Bytes
/
Copy pathexample-capture.yml
File metadata and controls
34 lines (28 loc) · 826 Bytes
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
# Example: capture CI failures as MisakaNet intake artifacts
# This workflow does NOT auto-publish — it only generates redacted artifacts.
#
# Usage:
# - uses: Ikalus1988/MisakaNet/.github/actions/misaka-capture@main
# if: failure()
# with:
# summary: "CI failed"
# log-file: pytest.log
name: Example Capture (not active)
on:
workflow_dispatch: # Manual trigger only — this is an example
permissions:
contents: read
jobs:
example:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Run tests (example)
run: python -m pytest || true
- name: Capture failure
if: failure()
uses: ./.github/actions/misaka-capture
with:
summary: "pytest failed"
log-file: pytest.log
source: github-actions