provide mattermost token as env variable

This commit is contained in:
olemorud
2022-12-07 18:55:29 +01:00
parent cd1bdefa8c
commit 87f80b0a2a

View File

@@ -23,11 +23,12 @@ jobs:
- name: 'Deploy Cloud Function'
uses: 'google-github-actions/deploy-cloud-functions@v1'
with:
description: 'Ping selected group of members on mattermost when coffee is mentioned'
name: 'Coffee'
description: 'Ping selected group of members on mattermost when coffee is mentioned'
env_vars: 'MATTERMOST_TOKEN=${{ secrets.MATTERMOST_TOKEN }}'
runtime: 'go119'
memory_mb: 128
region: 'europe-west1'
- name: 'Test #1'
run: 'echo "This should fail (no token)"; "curl "${{ steps.deploy.outputs.url }}" || true'
run: 'echo "This curl should fail (no token)"; "curl" "${{ steps.deploy.outputs.url }}" || true'