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
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 }}
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' |
Name | Description |
---|---|
deployment_id |
Deployment ID (numeric) |
See LICENSE for information on the license for this project. In short, this project is licensed under the MIT license.