From 885ee28e677fc7e42ac84b281a74114347703c47 Mon Sep 17 00:00:00 2001 From: Marcin Tojek Date: Fri, 9 Dec 2022 10:15:07 +0100 Subject: [PATCH] fix: fmt should check for unstaged files --- .github/workflows/coder.yaml | 3 +++ dogfood/main.tf | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/coder.yaml b/.github/workflows/coder.yaml index 8c1243a64bd57..a5bb412ebc67e 100644 --- a/.github/workflows/coder.yaml +++ b/.github/workflows/coder.yaml @@ -274,6 +274,9 @@ jobs: export PATH=${PATH}:$(go env GOPATH)/bin make --output-sync -j -B fmt + - name: Check for unstaged files + run: ./scripts/check_unstaged.sh + test-go: name: "test/go" runs-on: ${{ matrix.os == 'ubuntu-latest' && github.repository_owner == 'coder' && 'ubuntu-latest-16-cores' || matrix.os == 'windows-2022' && github.repository_owner == 'coder' && 'windows-latest-8-cores'|| matrix.os }} diff --git a/dogfood/main.tf b/dogfood/main.tf index f4f94ca62d2eb..353d52825503f 100644 --- a/dogfood/main.tf +++ b/dogfood/main.tf @@ -12,9 +12,9 @@ terraform { } variable "datocms_api_token" { - type = string + type = string description = "An API token from DATOCMS for usage with building our website." - default = "" + default = "" } # Admin parameters @@ -124,7 +124,7 @@ resource "docker_container" "workspace" { # CPU limits are unnecessary since Docker will load balance automatically memory = 32768 runtime = "sysbox-runc" - env = [ + env = [ "CODER_AGENT_TOKEN=${coder_agent.dev.token}", "DATOCMS_API_TOKEN=${var.datocms_api_token}", ]