You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
OpsLevel - Report Deploy
v0.2.0
This action emits a deploy event for service to OpsLevel.
Required The OpsLevel deploy integration url.
The service alias for the event - Default: <github_org_or_user_name>/<repository_name>
If the repository has an ./opslevel.yml
file the service name will get pulled from it.
The description or release notes for the event - Default: ""
The environment for the event - Default: ""
The deploy number for the event - Default: ${GITHUB_RUN_NUMBER}
The deployer name who created the event - Default: ${GITHUB_ACTOR}
The deployer email who create the event - Default: ""
jobs:
deploy:
steps:
- name: Report Deploy
uses: OpsLevel/[email protected]
with:
integration_url: ${{ secrets.OL_INTEGRATION_URL }}
service: "my-service"
If you want to add the git commit author as the deployer
jobs:
deploy:
steps:
- name: Get Deployer
id: deployer
run: |
DEPLOYER=$(git show -s --format='%ae')
echo "::set-output name=DEPLOYER::${DEPLOYER}"
- name: Report Deploy
uses: OpsLevel/[email protected]
with:
integration_url: ${{ secrets.DEPLOY_INTEGRATION_URL }}
service: "my-service"
deployer_email: ${{ steps.deployer.outputs.DEPLOYER }}