mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 08:14:18 -04:00
remove superfluous and nonworking github actions (#5747)
Signed-off-by: Ondřej Benkovský <ondrej.benkovsky@jamf.com> Signed-off-by: Ondřej Benkovský <ondrej.benkovsky@jamf.com>
This commit is contained in:
36
.github/workflows/go.fmt.yml
vendored
36
.github/workflows/go.fmt.yml
vendored
@@ -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
|
||||
43
.github/workflows/go.tidy.yml
vendored
43
.github/workflows/go.tidy.yml
vendored
@@ -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
|
||||
36
.github/workflows/whitespace.yml
vendored
36
.github/workflows/whitespace.yml
vendored
@@ -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
|
||||
Reference in New Issue
Block a user