Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 871 Bytes

README.md

File metadata and controls

29 lines (23 loc) · 871 Bytes

Lona Clean GitHub Action

A Github Action to clean the deployment made by the main Lona GitHub Action.

Usage

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 }}

Inputs

  • github_token (required) - Required for permission to tag the repo. Usually ${{ secrets.GITHUB_TOKEN }}.
  • ref_type (required) - The object that was deleted. Can be branch or tag. 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.