From 13ac3adaaad873edfe276b0727029cbf3037b1ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Benkovsk=C3=BD?= Date: Wed, 9 Nov 2022 20:06:01 +0100 Subject: [PATCH] remove superfluous and nonworking github actions (#5747) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ondřej Benkovský Signed-off-by: Ondřej Benkovský --- .github/workflows/go.fmt.yml | 36 -------------------------- .github/workflows/go.tidy.yml | 43 -------------------------------- .github/workflows/whitespace.yml | 36 -------------------------- 3 files changed, 115 deletions(-) delete mode 100644 .github/workflows/go.fmt.yml delete mode 100644 .github/workflows/go.tidy.yml delete mode 100644 .github/workflows/whitespace.yml 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