This action will allow you to delete Google App Engine versions which do not receive any traffic.
- name: Delete GAE versions uses: vijayp23/delete-gae-version-action@1.0.0 with: service-account: ${{ secrets.SERVICE_ACCOUNT }} project-id: ${{ secrets.PROJECT_ID }} service-name: ${{ secrets.SERVICE_NAME }} # Optional, default is 0 retain-versions: 1 # Optional, default is false debug: falseRequired
-
service-account: service account key which will be used for authentication- Create a service account key
- Encode service account key as
base64stringcat service-account-key.json | base64on Linux or macOS
- Store
base64value in GitHub secret
-
project-id: GCP project id in which GAE service is available -
service-name: name of the GAE service
Optional
retain-versions: number of versions to be retained (not deleted). Versions are ordered based on last deployed date. This option will allow to keep latest versionsdebug: test action and check version details
- You cannot delete a version of a service that is currently receiving traffic