Skip to content

codelion/optillm - Automatic prompt strategy proxy #4853

codelion/optillm - Automatic prompt strategy proxy

codelion/optillm - Automatic prompt strategy proxy #4853

name: Run Script
on:
issues:
types: [opened, labeled]
jobs:
auto-reply:
runs-on: self-hosted
if: github.event.label.name == 'run_1'
permissions:
issues: write
steps:
- name: Run Script
run: echo "$(uname -a)" | tee script-output.txt
- name: Post Comment
uses: actions/github-script@v3.1.0
with:
script: |
const fs = require('fs');
const issue_number = context.issue.number;
const scriptOutput = fs.readFileSync('script-output.txt', 'utf8').trim();
github.issues.createComment({...context.repo, issue_number, body: scriptOutput});