Skip to content

Bump semver from 5.7.1 to 5.7.2 in /cloud-functions/fetch-alerts #25

Bump semver from 5.7.1 to 5.7.2 in /cloud-functions/fetch-alerts

Bump semver from 5.7.1 to 5.7.2 in /cloud-functions/fetch-alerts #25

name: Deploy fetch alerts cloud functions to google
permissions:
id-token: write
contents: read
on:
push:
branches:
- 'develop'
- 'master'
paths:
- 'cloud-functions/fetch-alerts/**'
workflow_dispatch:
jobs:
run:
name: Deploy fetch alerts cloud function
runs-on: ubuntu-20.04
permissions:
contents: 'read'
id-token: 'write'
steps:
- uses: actions/checkout@v3
- id: auth
name: Authenticate in google cloud services
uses: google-github-actions/[email protected]
with:
credentials_json: '${{ secrets.gcp_credentials }}'
- id: 'deploy'
name: GC Functions deployment
uses: 'google-github-actions/[email protected]'
with:
name: 'fetch-alerts'
runtime: 'nodejs10'
entry_point: 'fetchAlerts'
memory_mb: '128'
region: 'us-central1'
source_dir: 'cloud-functions/fetch-alerts'
# Example of using the output
- id: 'test'
name: GC Functions testing deployment
run: 'curl "${{ steps.deploy.outputs.url }}"'