Skip to content

Agentless/README.md at main · OpenAutoCoder/Agentless #5182

Agentless/README.md at main · OpenAutoCoder/Agentless

Agentless/README.md at main · OpenAutoCoder/Agentless #5182

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/[email protected]
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});