Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

feat: Add `trigger-remote-workflow` action

Open
#3 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
github-actions, shell
Domain
ci-cd, devops

Research direction

Start with the Inputs, Auto-populated Payload, and Example Usage sections, then review the GitHub API requirements for sending a repository_dispatch event. Implement the reusable action around the specified inputs, context defaults, repository validation, and error handling; done means it can trigger the documented target workflow with the expected payload.

Written by the indexing model from the issue text.

Description

enhancement new-action

Summary

Create a reusable GitHub Action that dispatches a repository_dispatch event to a target repository with auto-populated context from the source workflow.

Use Case

Enable source repositories (e.g., arustydev/ai, arustydev/just) to trigger workflows in a target repository (e.g., arustydev/docs) when their documentation changes. The action automatically populates payload context from GitHub environment variables.

Specification

Inputs
Input Required Default Description
target_repo Yes Repository to trigger (owner/repo)
event_type Yes Event type for repository_dispatch
token Yes PAT with repo scope for target
source_repo No ${{ github.repository }} Source repository
ref No ${{ github.ref_name }} Branch/tag that triggered
sha No ${{ github.sha }} Commit SHA
path No Relevant path (for filtering)
Auto-populated Payload
{
  "source_repo": "arustydev/ai",
  "ref": "main",
  "sha": "abc1234...",
  "path": "docs/src"
}
Example Usage
- uses: arustydev/gha/trigger-remote-workflow@v1
  with:
    target_repo: arustydev/docs
    event_type: docs-update
    token: ${{ secrets.DISPATCH_TOKEN }}
    path: docs/src

Implementation Notes

  • Use GitHub API to send repository_dispatch event
  • Auto-detect context from github.* environment variables when inputs not provided
  • Validate target_repo format (owner/repo)
  • Handle API errors gracefully with clear error messages

Related

  • Part of docs aggregation workflow extraction from justfile to GHA
  • Works with sparse-checkout-aggregate action in target repo
Dominant language
Shell
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from aRustyDev/gh

All issues in aRustyDev/gh

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.