recoord/last-successful-build-action
Action to find the sha of the last successful workflow of a branch.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| clean | Determine if checkout should be cleaned | no | true |
| relative_checkout_directory | The relative checkout directory in terms of the runner/repository workspace | yes | — |
| token | GITHUB_TOKEN or a repo scoped PAT. | no | ${{ github.token }} |
| branch | Branch for the workflow to look for. | no | ${{ github.head_ref || github.ref_name }} |
| fetch-depth | Number of commits to fetch. 0 indicates all history for all branches and tags. | — | 1 |
| verify | Verify SHA of workflow run commit against list of commit SHAs in repository. Add verify if workflow is expected to contain commits that no longer exist (rebased commit history) | no | false |
| workflow | Current workflow name | no | ${{ github.workflow }} |
Outputs
| name | description |
|---|---|
| sha | Sha of the workflow-run matching the requirements. |
| run-id | Id of the workflow-run matching the requirements. |
| n-runs | Number of runs of the workflow matching the requirements |