Skip to content

Commit 957a60f

Browse files
chore: update .github/workflows/lint.yaml
1 parent 7a1f51f commit 957a60f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/lint.yaml

+5-2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
# NOTE: This file is automatically generated from values at:
16+
# https://github.com/GoogleCloudPlatform/cloud-foundation-toolkit/blob/master/infra/terraform/test-org/org/locals.tf
17+
1518
name: 'lint'
1619

1720
on:
@@ -32,12 +35,12 @@ jobs:
3235
- id: variables
3336
run: |
3437
MAKEFILE=$(find . -name Makefile -print -quit)
35-
if [ ! -f $MAKEFILE ]; then
38+
if [ ! -z "$MAKEFILE" ]; then
3639
echo dev-tools=gcr.io/cloud-foundation-cicd/cft/developer-tools:1 >> "$GITHUB_OUTPUT"
3740
else
3841
VERSION=$(grep "DOCKER_TAG_VERSION_DEVELOPER_TOOLS := " $MAKEFILE | cut -d\ -f3)
3942
IMAGE=$(grep "DOCKER_IMAGE_DEVELOPER_TOOLS := " $MAKEFILE | cut -d\ -f3)
4043
REGISTRY=$(grep "REGISTRY_URL := " $MAKEFILE | cut -d\ -f3)
4144
echo dev-tools=${REGISTRY}/${IMAGE}:${VERSION} >> "$GITHUB_OUTPUT"
4245
fi
43-
- run: docker run --rm -e EXCLUDE_LINT_DIRS -v ${{ github.workspace }}:/workspace ${{ steps.variables.outputs.dev-tools }} /usr/local/bin/test_lint.sh
46+
- run: docker run --rm -v ${{ github.workspace }}:/workspace ${{ steps.variables.outputs.dev-tools }} /usr/local/bin/test_lint.sh

0 commit comments

Comments
 (0)