Skip to content

GitHub Action for automated distribute archived webpages.

License

Notifications You must be signed in to change notification settings

wabarc/distributor

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

distributor

Read this in other languages: English | 简体中文

GitHub Actions for automated distribute archived webpages.

Workflow

Configurations

DISTRIBUTE_TOKEN (required)

GitHub account authentication token for storing webpages.

DISTRIBUTE_OWNER (default: current user)

GitHub account username for storing webpages.

DISTRIBUTE_REPO (default: current repository)

GitHub repository name for storing webpages.

DISTRIBUTE_CHANNEL (required)

Webpages soruce, telegram channel name.

DISTRIBUTE_LIMIT (optional)

Limit the number of messages to fetching at one time.

DISTRIBUTE_CMD (default: github)

Example

Using current GitHub account to storing data, it require add all the required configs to Secrets.

- uses: wabarc/distributor@main
  env:
    DISTRIBUTE_TOKEN: ${{ secrets.DISTRIBUTE_TOKEN }}
    DISTRIBUTE_OWNER: ${{ secrets.DISTRIBUTE_OWNER }}
    DISTRIBUTE_REPO: ${{ secrets.DISTRIBUTE_REPO }}
    DISTRIBUTE_CHANNEL: ${{ secrets.DISTRIBUTE_CHANNEL }}

Using current GitHub account to storing data, it only require add DISTRIBUTE_CHANNEL to Secrets.

- uses: wabarc/distributor@main
  env:
    DISTRIBUTE_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    DISTRIBUTE_CHANNEL: ${{ secrets.DISTRIBUTE_CHANNEL }}

For more details, see wabarc/broker.

License

This software is released under the terms of the MIT. See the LICENSE file for details.