Reviewable / appengine-remove-action

Action to remove versions of deployed App Engine apps over the set limit
3 stars 2 forks source link

appengine-remove-action

This action removes versions of your deployed app to App Engine that go beyond the set limit and makes the number of versions and version numbers available to later build steps via outputs. This allows you to parameterize your App Engine removals.

Note: The oldest versions that goes beyond your set limit will be deleted.

Usage

steps:
- id: remove
  uses: Reviewable/appengine-remove-action@v2.1.2
  with:
    limit: 5
    project_id: ${{ secrets.GCP_PROJECT_ID }}
    credentials: ${{ secrets.GCP_CREDENTIALS }}

# Example of using the output
- id: test
  run: |
    echo "${{ steps.remove.outputs.versions_deleted }}"
    echo "${{ steps.remove.total_deleted }}"

Prerequisites

This action requires Google Cloud credentials that are authorized to delete an App Engine Application version. See the Authorization section below for more information.

Inputs

Outputs

Authorization

There are a few ways to authenticate this action. The caller must have permissions to access the secrets being requested.

Roles needed: