actions-hub / gcloud

GitHub Action for interacting with Google Cloud Platform (GCP)
https://github.com/marketplace/actions/google-cloud-platform-gcp-cli-gcloud
MIT License
230 stars 27 forks source link

app.yaml does not exist error #21

Closed capndave closed 3 years ago

capndave commented 3 years ago

I'm getting the following on deploy:

ERROR: (gcloud.app.deploy) [/github/workspace/app.yaml] does not exist.

I noticed this similar issue but the suggestion there does not help in my case (already declared actions/checkout@v1). Any ideas?

.github/workflow/deploy.yaml

name: Deploy to Google App Engine
on:
  push:
    branches:
      - master
jobs:
  deploy:
    name: Deploy
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1
      - uses: actions-hub/gcloud@master
        env:
          PROJECT_ID: ${{secrets.GCLOUD_PROJECT_ID}}
          APPLICATION_CREDENTIALS: ${{secrets.GCP_CREDENTIALS}}
        with:
          args: app deploy app.yaml
capndave commented 3 years ago

Dumb mistake - I had app.yaml in my .gitignore as it stores env vars. Closing.