E906 GitHub - wippyai/action-module-release: Minimal hello module for wippy.ai platform
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

wippyai/action-module-release

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Module Release Locator

A GitHub Action and local tool for locating and processing release source code from GitHub repositories.

Features

  • Locates GitHub releases by repository and tag
  • Downloads release source code
  • Uploads source code to modules.wippy.ai
  • Supports both GitHub Actions and local execution

Usage

GitHub Action Usage

Add the following to your workflow file (.github/workflows/your-workflow.yml):

name: Release Module

on:
  release:
    types: [published]

jobs:
  release:
    runs-on: ubuntu-latest
    steps:
      - uses: wippyai/module-release-locator@v1
        with:
          repository: ${{ github.repository }}
          tag: ${{ github.ref_name }}
          token: ${{ secrets.GITHUB_TOKEN }}
          module_id: "your-module-uuid"
          username: ${{ secrets.WIPPY_USERNAME }}
          password: ${{ secrets.WIPPY_PASSWORD }}

Local Testing

  1. Clone the repository:
git clone https://github.com/wippyai/module-release-locator.git
cd module-release-locator
  1. Make the script executable:
chmod +x main.sh
  1. Run the script:
./main.sh \
  --repository "owner/repo" \
  --tag "v1.0.0" \
  --token "your-github-token" \
  --module-id "your-module-uuid" \
  --username "your-wippy-username" \
  --password "your-wippy-password"

Required Parameters

  • --repository: GitHub repository in format owner/repo (e.g., wippyai/module-hello)
  • --tag: Release tag to locate (e.g., v1.0.0)
  • --token: GitHub token for authentication
  • --module-id: UUID of the module to upload to
  • --username: Username for modules.wippy.ai authentication
  • --password: Password for modules.wippy.ai authentication

Dependencies

The script will automatically install required dependencies:

  • jq (for JSON processing)
  • Docker (for building and running the upload tool)

Output

The script provides the following outputs:

  • Release URL
  • Source code URL

Error Handling

The script includes error handling for:

  • Missing required parameters
  • Invalid repository/tag combinations
  • Network issues
  • Authentication failures

Development

To modify the functionality:

  1. Edit the main script in main.sh
  2. Test locally using the provided usage instructions
  3. Update the GitHub Action in action.yml if needed

About

Minimal hello module for wippy.ai platform

Resources

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

0