Skip to content

SYS ⚙️ align CLI with Bearer token API endpoints #34

SYS ⚙️ align CLI with Bearer token API endpoints

SYS ⚙️ align CLI with Bearer token API endpoints #34

Workflow file for this run

name: Carmel Judgment Protocol 😼
permissions:
contents: read
pull-requests: write
issues: write
on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches:
- "**"
jobs:
judgment:
name: Carmel Reviews the Offering
runs-on: ubuntu-latest
steps:
- name: 🧾 Checkout code
uses: actions/checkout@v4
- name: 🟢 Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: 📦 Install dependencies
run: npm ci
- name: 📜 Enforce JSON output contract
id: json
run: npm run json:check
- name: 🧪 Run tests
id: tests
run: npm run test:run
continue-on-error: true
- name: 😼 Carmel Judgment Stamp
if: ${{ always() && github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false }}
uses: actions/github-script@v7
env:
TESTS_OUTCOME: ${{ steps.tests.conclusion }}
with:
script: |
const passed = process.env.TESTS_OUTCOME === "success";
const body = passed
? "😼✨ **Carmel Approval Stamp™**\n\n> *Adequate work, human.*"
: "😼🔥 **Carmel Chaos Stamp™**\n\n> *I sense weakness in these tests.*";
await github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
body
});
if (!passed) core.setFailed("Carmel has rejected this PR.");
- name: 😼 Carmel Observes the Results
run: echo "Verdict delivered. "