aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/go.fmt.yml36
-rw-r--r--.github/workflows/go.tidy.yml43
-rw-r--r--.github/workflows/whitespace.yml36
3 files changed, 0 insertions, 115 deletions
diff --git a/.github/workflows/go.fmt.yml b/.github/workflows/go.fmt.yml
deleted file mode 100644
index faa44835a..000000000
--- a/.github/workflows/go.fmt.yml
+++ /dev/null
@@ -1,36 +0,0 @@
-name: Go Fmt
-
-on:
- schedule:
- - cron: '22 10 * * 1'
-
-permissions: read-all
-
-jobs:
- fix:
- runs-on: ubuntu-latest
- permissions:
- contents: write
- steps:
- - name: Checkout
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
-
- - name: Fmt
- run: |
- find . -not -path '*/\.git/*' -type f -name '*.go' -exec gofmt -s -w {} \+
-
- - name: Set up Git
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: |
- git config user.name "coredns[bot]"
- git config user.email "bot@bot.coredns.io"
- git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
-
- - name: Commit and push changes
- run: |
- git add .
- if output=$(git status --porcelain) && [ ! -z "$output" ]; then
- git commit -s -m 'auto go fmt'
- git push
- fi
diff --git a/.github/workflows/go.tidy.yml b/.github/workflows/go.tidy.yml
deleted file mode 100644
index 8bbcba1cb..000000000
--- a/.github/workflows/go.tidy.yml
+++ /dev/null
@@ -1,43 +0,0 @@
-name: Go Tidy
-
-on:
- schedule:
- - cron: '22 10 * * *'
-
-permissions: read-all
-
-jobs:
- fix:
- runs-on: ubuntu-latest
- permissions:
- contents: write
- steps:
- - name: Install Go
- uses: actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f
- with:
- go-version: '1.19.0'
- id: go
-
- - name: Checkout
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
-
- - name: Tidy
- run: |
- rm -f go.sum
- go mod tidy -compat=1.17
-
- - name: Set up Git
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: |
- git config user.name "coredns[bot]"
- git config user.email "bot@bot.coredns.io"
- git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
-
- - name: Commit and push changes
- run: |
- git add .
- if output=$(git status --porcelain) && [ ! -z "$output" ]; then
- git commit -s -m 'auto go mod tidy'
- git push
- fi
diff --git a/.github/workflows/whitespace.yml b/.github/workflows/whitespace.yml
deleted file mode 100644
index 709dfd045..000000000
--- a/.github/workflows/whitespace.yml
+++ /dev/null
@@ -1,36 +0,0 @@
-name: Remove Trailing Whitespaces
-
-on:
- schedule:
- - cron: '22 10 * * 2'
-
-permissions: read-all
-
-jobs:
- fix:
- runs-on: ubuntu-latest
- permissions:
- contents: write
- steps:
- - name: Checkout
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
-
- - name: Remove Trailing Whitespaces
- run: |
- find . -not -path '*/\.git/*' -type f -not -name '*.go' -exec sed -i 's/[[:space:]]\{1,\}$//' {} \+
-
- - name: Set up Git
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: |
- git config user.name "coredns[bot]"
- git config user.email "bot@bot.coredns.io"
- git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
-
- - name: Commit and push changes
- run: |
- git add .
- if output=$(git status --porcelain) && [ ! -z "$output" ]; then
- git commit -s -m 'auto remove trailing whitespaces'
- git push
- fi