From cd1bdefa8c07493e41b7caab0794e565b81b1371 Mon Sep 17 00:00:00 2001 From: olemorud Date: Wed, 7 Dec 2022 18:43:10 +0100 Subject: [PATCH] add runs-on to job --- .github/workflows/deploy.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ea9d1f8..24b0dd4 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -5,27 +5,29 @@ on: workflow_dispatch jobs: deploy: + runs-on: ubuntu-latest + permissions: contents: 'read' id-token: 'write' steps: - - id: 'Checkout' + - name: 'Checkout' uses: 'actions/checkout@v3' - - id: 'Google Cloud Authentication' + - name: 'Google Cloud Authentication' uses: 'google-github-actions/auth@v1' with: credentials_json: ${{ secrets.CLOUD_CREDENTIALS }} - - id: 'Deploy Cloud Function' + - 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: 'coffee2' + name: 'Coffee' runtime: 'go119' - memory_mb: 1 + memory_mb: 128 region: 'europe-west1' - - id: 'Test #1' + - name: 'Test #1' run: 'echo "This should fail (no token)"; "curl "${{ steps.deploy.outputs.url }}" || true'