Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 1.2 KB

README.md

File metadata and controls

33 lines (26 loc) · 1.2 KB

last-successful-build-action

This action searches for the last successful workflow-run for the given workflow-name and branch. The sha of the workflow-commit is set as output-parameter. If no matching workflow exists, the sha of the current run is emitted. This repo was forked from https://github.com/SamhammerAG/last-successful-build-action

Usage

      - uses: actions/checkout@v2
      - name: Find matching workflow
        uses: varsitytutors/last-successful-build-action@v2.1
        with:
          token: "${{ secrets.GITHUB_TOKEN }}"
          branch: "development"
          workflow: "build"

Config

Action inputs

Name Description Default
token GITHUB_TOKEN or a repo scoped PAT. GITHUB_TOKEN
branch Branch for the workflow to look for. ""
workflow Workflow name to look for. ""
verify Verify workflow commit SHA against list of SHAs in repository false

Action outputs

Name Description Default
sha Sha of the workflow-run matching the requirements. ${{ github.sha }}