npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

strapi-plugin-github-actions-workflowid

v0.1.2

Published

This plugin allows you to trigger a GitHub action with Strapi

Readme

Strapi plugin github-actions

A plugin which adds a mechanism to trigger specific github actions (using the repository_dispatch event, an event_type, and optionally a client_payload). The use case for this plugin is building a static site in GitHub without using webhooks which may be triggered too often.

Installation

npm install -S strapi-plugin-github-actions
npm run build
npm run develop

Configuration

First, you need to add one or multiple workflows in your content.

  • Go to the administration panel, and you'll see a new collection type called Workflows.
  • Add a new workflow by filling all its details
  • Once saved, you can trigger the workflow by going to Plugins > GitHub Actions Plugin and clicking on the 'start' button.

Set personal access token in config

If you don't want your personal access token to be visible and editable from the workflow, you can set it in the plugin config, using for example a env variable

Strapi workflow example

And in plugin config

// config/plugins.js

module.exports = ({ env }) => ({
  // ...
  "github-actions": {
    hasEnvPat: true,
    pats: { "my website": env("GITHUB_APIKEY") },
  },
  // ...
});

the name of the workflow must be identical to the name of the property inside pats object ("my website" in the example)

Optional: configure the view for the workflow model

Strapi does not yet offer a way for plugins to configure their models' views, nor to hide themselves from the collection types. Initially, this plugin should have been configurable only through the settings but unfortunately this is not yet possible.

To have an opinionated view of the workflow model, you can update the core_store table of the database (.tmp/data.db by default):

UPDATE `core_store`
SET `value` = '{"uid":"plugins::github-actions.workflow","settings":{"bulkable":true,"filterable":true,"searchable":true,"pageSize":10,"mainField":"name","defaultSortBy":"name","defaultSortOrder":"ASC"},"metadatas":{"pat":{"edit":{"label":"Personal Access Token","description":"GitHub PAT with repo scope","placeholder":"","visible":true,"editable":true},"list":{"label":"Pat","searchable":true,"sortable":true}},"github_host":{"edit":{"label":"GitHub Host","description":"GitHub host (not URL)","placeholder":"github.com","visible":true,"editable":true},"list":{"label":"Github_host","searchable":true,"sortable":true}},"repo_owner":{"edit":{"label":"Repository owner","description":"","placeholder":"","visible":true,"editable":true},"list":{"label":"Repo_owner","searchable":true,"sortable":true}},"created_at":{"edit":{"label":"Created_at","description":"","placeholder":"","visible":false,"editable":true},"list":{"label":"Created_at","searchable":true,"sortable":true}},"name":{"edit":{"label":"Name","description":"Workflow name (will be shown in the buttons)","placeholder":"","visible":true,"editable":true},"list":{"label":"Name","searchable":true,"sortable":true}},"started_at":{"edit":{"label":"Started At","description":"Last start date of the trigger","placeholder":"","visible":true,"editable":false},"list":{"label":"Started_at","searchable":true,"sortable":true}},"updated_at":{"edit":{"label":"Updated_at","description":"","placeholder":"","visible":false,"editable":true},"list":{"label":"Updated_at","searchable":true,"sortable":true}},"repo_name":{"edit":{"label":"Repository name","description":"","placeholder":"","visible":true,"editable":true},"list":{"label":"Repo_name","searchable":true,"sortable":true}},"client_payload":{"edit":{"label":"client_payload","description":"Payload that will be passed to the repository_dispatch. Can be accessed with github.event.client_payload.XXX.","placeholder":"","visible":true,"editable":true},"list":{"label":"Client_payload","searchable":false,"sortable":false}},"id":{"edit":{},"list":{"label":"Id","searchable":true,"sortable":true}},"description":{"edit":{"label":"Description","description":"Workflows description (will be shown in the button)","placeholder":"","visible":true,"editable":true},"list":{"label":"Description","searchable":true,"sortable":true}},"event_type":{"edit":{"label":"event_type","description":"The event_type your repository_dispatch acts on","placeholder":"","visible":true,"editable":true},"list":{"label":"Event_type","searchable":true,"sortable":true}}},"layouts":{"list":["name","repo_owner","repo_name","event_type"],"edit":[[{"name":"name","size":6},{"name":"description","size":6}],[{"name":"github_host","size":6},{"name":"pat","size":6}],[{"name":"repo_owner","size":6},{"name":"repo_name","size":6}],[{"name":"event_type","size":6}],[{"name":"client_payload","size":12}]],"editRelations":[]}}'
WHERE `key` = 'plugin_content_manager_configuration_content_types::plugins::github-actions.workflow'

Example GitHub action file:

name: Do something

on:
  repository_dispatch:
    types: do_something

jobs:
  build:
    name: Do the thing
    runs-on: ubuntu-latest
    steps:
      - name: First step
        run: echo Starting
      - name: Second step
        run: echo ${{ github.event.client_payload.text }}

To trigger the CI of a repository with this file, you must add a new workflow with the event_type as do_something and client_payload as {"text":"Hello world"}.

Todo

  • Implement some kind of permissions settings
  • i18n