jfandy1982/github-workflow-context
GitHub action for outputting affected Git SHAs and branch names
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Jun 26, 2026
- License
- MIT
Pinned Snippet
uses: jfandy1982/github-workflow-context@6ee3be6428d583d76a3cd351d926b9a9fc4644c0 # no releases — HEAD as of 2026-07-11tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| base | Base of the current branch (usually main) | — | — |
| head | Latest commit of the current branch (usually HEAD) | — | — |
Outputs
| name | description |
|---|---|
| base-branch | Name of the base branch |
| base-sha | SHA of the base branch tip |
| head-branch | Name of the head branch |
| head-sha | SHA of the head branch tip |
| default-branch | Name of the default branch of the repository |