feat: Add `trigger-remote-workflow` action
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
調査の方向性
Inputs、Auto-populated Payload、Example Usage の各セクションから始め、repository_dispatch イベントを送信するための GitHub API の要件を確認します。指定された inputs、context のデフォルト値、repository の検証、エラー処理を中心に再利用可能な action を実装します。ドキュメント化された対象 workflow を期待される payload でトリガーできれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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_dispatchevent - 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-aggregateaction in target repo
- 主要言語
- Shell
- スター
- 0
- フォーク
- 0
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
aRustyDev/gh のほかの issue
-
dependencies github-actions
難易度 1/5 1時間未満 初心者へのやさしさ 10/100
-
dependencies github-actions
難易度 1/5 1時間未満 初心者へのやさしさ 15/100
-
dependencies github-actions
難易度 1/5 1時間未満 初心者へのやさしさ 50/100
-
dependencies github-actions
難易度 2/5 1〜3時間 初心者へのやさしさ 20/100
-
dependencies github-actions
難易度 2/5 1〜3時間 初心者へのやさしさ 10/100
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
omarchy-menu-keybindings lua bind scan spins at 100% CPU when user config iterates a mocked hl APIオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
omacom/omarchy#14302 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Link Checker Report対応中かも @keraron が今日担当しました。 オープンautomated issue report
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
a2aproject/A2A#2297 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
mattpocock/skills#1165 ·
-
agent-research-finding agent-research-recommend chore ready-for-agent
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
jordansmall/spindrift#4487 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信