From f591fd0310636a8952674057f3ca2958240a0585 Mon Sep 17 00:00:00 2001 From: Mayank Thakur Date: Mon, 6 Nov 2023 19:53:14 +0530 Subject: [PATCH] debug: added commaands to debug github actions --- .github/workflows/enforce-go-mod-tidy.yml | 4 ++-- .github/workflows/pre-commit-hook-run.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/enforce-go-mod-tidy.yml b/.github/workflows/enforce-go-mod-tidy.yml index 403ac3b5..82b7e38e 100644 --- a/.github/workflows/enforce-go-mod-tidy.yml +++ b/.github/workflows/enforce-go-mod-tidy.yml @@ -10,9 +10,9 @@ jobs: - name: Create a new git repository run: git init && git add --all && git -c user.name='test' -c user.email='test@example.com' commit -m 'init for pr action' - name: Install latest go - run: wget https://go.dev/dl/go1.18.10.linux-amd64.tar.gz && rm -rf /usr/local/go && tar -C /usr/local -xzf go*.tar.gz && export PATH=$PATH:/usr/local/go/bin + run: wget https://go.dev/dl/go1.21.3.linux-amd64.tar.gz && rm -rf /usr/local/go && tar -C /usr/local -xzf go*.tar.gz && export PATH=$PATH:/usr/local/go/bin - name: Debug - run: go version && go mod tidy && go mod why + run: go version && go mod tidy && go mod why -m && git status && git diff - name: Go mod tidy for root project run: go mod tidy - name: Go mod tidy for example apps diff --git a/.github/workflows/pre-commit-hook-run.yml b/.github/workflows/pre-commit-hook-run.yml index 290c312b..fbc3a097 100644 --- a/.github/workflows/pre-commit-hook-run.yml +++ b/.github/workflows/pre-commit-hook-run.yml @@ -21,5 +21,5 @@ jobs: node-version: '12' - run: git init && git add --all && git -c user.name='test' -c user.email='test@example.com' commit -m 'init for pr action' - name: Install latest go - run: wget https://go.dev/dl/go1.18.10.linux-amd64.tar.gz && rm -rf /usr/local/go && tar -C /usr/local -xzf go*.tar.gz && export PATH=$PATH:/usr/local/go/bin + run: wget https://go.dev/dl/go1.21.3.linux-amd64.tar.gz && rm -rf /usr/local/go && tar -C /usr/local -xzf go*.tar.gz && export PATH=$PATH:/usr/local/go/bin - run: ./hooks/pre-commit.sh