Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 2 KB

README.md

File metadata and controls

41 lines (30 loc) · 2 KB

Get Last Deployment Action

Get last deployment for repository, can filter for state/status of deployment.

If deployment has in another repository need send personal access token with all permission in env variable GITHUB_TOKEN and use owner and repo parameters with data of the repository

Usage

job:
  name: Get last deployment
  runs-on: ubuntu-latest
  steps:
    - name: Get lastdeployment
      uses: allnnde/[email protected]
      with:
        environment: testing
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Inputs

Name Description Required Default
environment Deployment environment true
owner GitHub owner false Defaults to curret owner
repo Repository name false Defaults to current repository
state find by status for the deployment. Must be one of the accepted strings false Default value 'pending'

Outputs

Name Description
deployment_id Deployment ID (numeric)

License

See LICENSE for information on the license for this project. In short, this project is licensed under the MIT license.