Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 1.29 KB

README.md

File metadata and controls

25 lines (17 loc) · 1.29 KB

GitHub Action for managing shepherd leases

.github/workflows/test.yml

Usage

This action abstracts claiming and unclaiming shepherd leases.

.github/workflows/test.yml provides a good starting point.

Development

  1. Open with VisualStudion Code
  2. Create .secrets file with real API token.
    • echo "API_TOKEN: $(shepherd create service-account gha-shepherd --json | jq -r .secret)" >> .secrets
    • Local workflow dev runner act injects content of .env and .secrets into workflow execution context.
  3. Open project inside the dev container.
  4. Run make run to start.

Deployment

  1. To upload variables and secrets to the default remote repo for the current branch. PROCEED WITH CARE use make repo-context-setup. This will overwrite remote vaules with local from .env and .secrets

ADR

  1. Parameter validation happens inside shell script, inputs in [./action.yml] are maximum permissive.