---
title: "How to create a custom GitHub Action?"
url: https://daily.dev/posts/how-to-create-a-custom-github-action--ougfrtr41
source_url: https://event-driven.io/en/how_to_create_a_custom_github_action
type: article
source: "Event-Driven by Oskar Dudycz"
published: 2026-06-17T11:26:08.498Z
updated: 2026-06-17T11:32:32.883Z
tags: ["javascript", "automation", "cicd", "github-actions"]
reading_time: 6
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# How to create a custom GitHub Action?

**[Event-Driven by Oskar Dudycz](https://daily.dev/sources/event-driven-io)** · 6 min read · 0 upvotes · 0 comments

## Summary

A walkthrough of building a custom JavaScript-based GitHub Action that automatically cherry-picks pull request commits to target branches based on PR labels. The author shares the motivation (automating repetitive documentation sync across release branches for EventStoreDB), the architecture decision to host shared actions in a dedicated repository, and practical pitfalls encountered — including the need to commit node_modules and .gitignore conflicts. Includes a working YAML workflow snippet and links to the open-source action code using the Octokit SDK.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://event-driven.io/en/how_to_create_a_custom_github_action>

## Similar posts on daily.dev

- [GitHub for Beginners: Getting started with GitHub Actions](https://daily.dev/posts/github-for-beginners-getting-started-with-github-actions-swremqjqc) · GitHub Blog · 0 upvotes · 0 comments

---

Tags: [#javascript](https://daily.dev/tags/javascript), [#automation](https://daily.dev/tags/automation), [#cicd](https://daily.dev/tags/cicd), [#github-actions](https://daily.dev/tags/github-actions)

[View this post on daily.dev](https://daily.dev/posts/how-to-create-a-custom-github-action--ougfrtr41)
