Skip to content

Instantly share code, notes, and snippets.

@Darkflib
Created July 9, 2025 09:48
Show Gist options
  • Save Darkflib/b6485ebdd790190a85864d5a908f6c37 to your computer and use it in GitHub Desktop.
Save Darkflib/b6485ebdd790190a85864d5a908f6c37 to your computer and use it in GitHub Desktop.
Useful stuff

Collection of useful things

AI stuff

Github + dev

Github Script

https://github.com/actions/github-script -- script within github actions for github api stuff

    - name: Output plan to PR (optional, small plans only)
      uses: actions/github-script@v7
      with:
        script: |
          const fs = require('fs');
          const plan = fs.readFileSync('infra/tfplan', 'utf8');
          github.rest.issues.createComment({
            issue_number: context.issue.number,
            owner: context.repo.owner,
            repo: context.repo.repo,
            body: `Terraform plan completed. Artifact uploaded.`
          });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment