Skip to content
aperture

GitHub Action

Get Last Deployment

v0.2.1 Latest version

Get Last Deployment

aperture

Get Last Deployment

Get last deployment

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Get Last Deployment

uses: allnnde/[email protected]

Learn more about this action in allnnde/get_last_deployment

Choose a version

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.