A Github Action to clean the deployment made by the main Lona GitHub Action.
name: Lona
on: delete
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: Lona/lona-clean-github-action@v1
id: lona
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
ref_type: ${{ github.event.ref_type }}
ref_name: ${{ github.event.ref }}github_token(required) - Required for permission to tag the repo. Usually${{ secrets.GITHUB_TOKEN }}.ref_type(required) - The object that was deleted. Can bebranchortag. Usually${{ github.event.ref_type }}.ref_name(required) - The git ref that was deleted. Usually${{ github.event.ref }}.lona_api_base_url- The Lona API server URL.