Skip to content

Code Runner Action

Actions
Github action to run code snippets from issues
v1
Latest
Star (6)

Github Code Runner Action

Github action to run code snippets from issues. This action extracts code from Github Issue's markdown blocks and execute it.

Usage

To use this action in your project, please follow the instructions on GitHub for initiating a workflows folder structure in your repository, if you have not done so already.

Once you have your workflow structure set up, you can create a new workflow YAML file inside /.github/workflows/ that contains the following:

on:
  issues:
    types: [opened, edited]

jobs:
  code_runner_job:
    runs-on: ubuntu-latest
    name: Code Runner
    steps:
    - name: Run Code
      uses: anuraghazra/code-runner-action@v1
    env:
      GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

Now when you opened, edited any issues this action will run and post a comment with the output of your executed codeblock.

License

This project is under the MIT License

Code Runner Action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Github action to run code snippets from issues
v1
Latest

Code Runner Action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.