chrisgavin / github-python-script

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GitHub Python Script Action

An action similar to actions/github-script that lets you use Python as the scripting language.

Authors

Example

on:
  push:
    branches: [ "main" ]
  pull_request:
    branches: [ "main" ]

  workflow_dispatch:

jobs:
  job:
    runs-on: ubuntu-latest

    steps:
      - uses: chrisgavin/github-python-script@0.0.1
        with:
          script: |
            repository.create_issue(
                title=f"New {context.event_name} event on {repository.full_name}.",
                body="```json\n" + json.dumps(context.payload, indent="\t") + "\n```",
            )

About


Languages

Language:TypeScript 100.0%