From 87f80b0a2ae5a7291a620aa33bc46ac22246dad7 Mon Sep 17 00:00:00 2001 From: olemorud Date: Wed, 7 Dec 2022 18:55:29 +0100 Subject: [PATCH] provide mattermost token as env variable --- .github/workflows/deploy.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 24b0dd4..92b570e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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'