Skip to main content

Trigger GitHub Actions workflows from Django.

Project description

Django Hookflow

Trigger GitHub Actions workflows from Django.

Installation

pip install django-hookflow

Depends on:

Usage

from django_hookflow import trigger_github_workflow

@trigger_github_workflow(repo="user/repo", workflow_file="workflow.yml")
def math_add_task(a, b, save_to_file=False):
    logger.info(f"Adding {a} and {b}")
    if save_to_file:
        with open("math-add-result.txt", "w") as f:
            f.write(f"{a} + {b} = {a + b}")
    return a + b
from django_hookflow import dispatch_workflow

dispatch_workflow(repo="user/repo", workflow_file="workflow.yml")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_hookflow-0.0.1.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_hookflow-0.0.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file django_hookflow-0.0.1.tar.gz.

File metadata

  • Download URL: django_hookflow-0.0.1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for django_hookflow-0.0.1.tar.gz
Algorithm Hash digest
SHA256 fd2e0c15e3a39cef370293246b141b7d232157bb6a83d0f5bc3a2ee218cd5e83
MD5 fe696c1b10710b05fff90dec72ecec2a
BLAKE2b-256 8725de6fcdfe989c1040ed7b883d4903c6da93ecddb1e5598af84435c3ebd847

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_hookflow-0.0.1.tar.gz:

Publisher: main.yaml on jmitchel3/django-hookflow

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file django_hookflow-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for django_hookflow-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6b9208b6f88aac3e1b70e51756ad5349c127978f1673705664516f06ea4691b6
MD5 be922ae79bdb793c18a07f5ca74f26e5
BLAKE2b-256 0ef5a2483b6cf3d582ea1894efa3a05686b1cabd1112a99abf373f7d3ac56bf3

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_hookflow-0.0.1-py3-none-any.whl:

Publisher: main.yaml on jmitchel3/django-hookflow

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page