elastic/oblt-actions
Action declares a main entrypointBasename is uppercase README.md
SHA-256d604c584d25ac06407dd17e09489fd764575d37b38133e52573713d12f1fbba5
Evidence
1# AI agent instructions for oblt-actions
2
3This file provides guidance to AI agents (Claude Code, GitHub Copilot, etc.) when working with code in this repository.
4
5## Meta instructions
6
7Important: Keep this file accurate and up to date. Update it immediately when (1) users give new instructions, (2) you find contradictions, or (3) new patterns or standards emerge. Treat t …
7:196… ntenance as a blocking, highest‑priority task that doesn’t need an explicit prompt.
8
9Note: This file is exempt from the “no new docs” rule below. Proactively edit and maintain this file as part of your duties.
10
11## Code Standards
12
13### Required before each commit
⋯6 lines
77:15… oduce code that exposes or logs secrets or keys.
78- Don’t commit secrets or keys to the repository.
1name: release-drafter
2
3on:
4 push:
5 branches:
⋯12 lines
18 - uses: release-drafter/release-drafter@b1476f6e6eb133afa41ed8589daba6dc69b4d3f5 # v6.1.0
19 env:
20 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1import json
2import os
3import yaml
4from pathlib import Path
5
6
7def run() -> None:
8 excluded_file = os.getenv("EXCLUDED_FILE", "")
9 framework_file = os.environ["FRAMEWORKS_FILE"]
10 versions_file = os.environ["VERSIONS_FILE"]
11
12 excludes = {'exclude': []}
13
14 if len(excluded_file) > 0:
15 excludes = yaml.safe_load(Path(excluded_file).read_text())
16 frameworks = yaml.safe_load(Path(framework_file).read_text())
17 versions = yaml.safe_load(Path(versions_file).read_text())
18
19 matrix = {'include': []}
20 for version in versions['VERSION']:
21 for framework in frameworks['FRAMEWORK']:
22 if len(list(filter(lambda item: item['VERSION'] == version and item["FRAMEWORK"] == framework, excludes['exclude']))) > 0:
23 print('excluded ' + version + ' with ' + framework)
24 else:
25 matrix['include'].append({"version": version, "framework": framework})
26
27 with open(os.environ.get('GITHUB_OUTPUT'), "a") as f:
28 f.write("matrix={}\n".format(json.dumps(matrix)))
29
30run()
No evidence locations were recorded for this file. Raw result