-
Notifications
You must be signed in to change notification settings - Fork 74
Open
Labels
enhancementNew feature or requestNew feature or request
Description
TL;DR
When deploying only cron jobs with gcloud app deploy api/cron.yaml --promote the action fails after the cronjobs are deployed.
Expected behavior
The action doesn't fail when successfully deploying only cron jobs.
Observed behavior
The action fails on output parsing, specifically complains about versions field being empty.
Deploying from CLI gives JSON output:
{
"configs": [
"cron"
],
"versions": []
}Clearly the versions array is empty, but since the cronjobs deploy successfully this is also clearly a valid state to be in.
Action YAML
---
name: staging
jobs:
deploy:
runs-on: ubuntu-latest
defaults:
run:
working-directory: api
steps:
- id: "auth"
uses: "google-github-actions/auth@v2"
with:
credentials_json: ${{ secrets.STAGING_GCP_CREDENTIALS }}
- name: Deploy cron
uses: google-github-actions/deploy-appengine@v2
with:
deliverables: api/cron.yamlLog output
Run google-github-actions/deploy-appengine@v2
with:
deliverables: api/cron.yaml
promote: true
Successfully authenticated
Running: gcloud app deploy --quiet --format json api/cron.yaml --promote
Error: google-github-actions/deploy-appengine failed with: failed to parse deploy response: missing or empty "versions", stdout: ***
"configs": [
"cron"
],
"versions": []
***
Additional information
No response
neekey and Jay-Pyo
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request