Skip to content

Instantly share code, notes, and snippets.

@benkoshy
Last active December 26, 2022 20:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benkoshy/0fc0e652adafaed2a78c2500ed2d941c to your computer and use it in GitHub Desktop.
Save benkoshy/0fc0e652adafaed2a78c2500ed2d941c to your computer and use it in GitHub Desktop.
Manually testing a github action

Ensure you ahve the following in the workflow you want to test:

on:
  workflow_dispatch:
  push:

Runn it with:

gh workflow run 'My Workflow Test' --ref my-test-branch

Ensure you install github CLI.

Now you don't have to corrupt your branches etc just to test something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment