From 9c598f3a8d17e1c97455c50b1d3199beec6e189c Mon Sep 17 00:00:00 2001 From: Henri Devigne Date: Sun, 2 Jun 2024 19:00:28 +0200 Subject: [PATCH] feat: support windows --- .github/actions/generate-icons/action.yml | 2 +- .github/workflows/pull_request.yml | 4 ++++ generate-icons.sh | 0 ping.go | 3 ++- 4 files changed, 7 insertions(+), 2 deletions(-) mode change 100644 => 100755 generate-icons.sh diff --git a/.github/actions/generate-icons/action.yml b/.github/actions/generate-icons/action.yml index cbee944..cbc40a9 100644 --- a/.github/actions/generate-icons/action.yml +++ b/.github/actions/generate-icons/action.yml @@ -19,7 +19,7 @@ runs: export GOPATH go get github.com/cratonica/2goarray go install github.com/cratonica/2goarray - bash generate-icons.sh + ./generate-icons.sh - uses: actions/upload-artifact@v4 if: ${{ inputs.upload_artifact == 'true' }} with: diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index cdd9abf..52d879b 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -22,10 +22,14 @@ jobs: fetch-depth: 0 - uses: ./.github/actions/generate-icons + with: + upload_artifact: false + - name: Super-linter uses: super-linter/super-linter@v6.5.1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + FILTER_REGEX_EXCLUDE: icons/*.go commitlint: runs-on: ubuntu-latest steps: diff --git a/generate-icons.sh b/generate-icons.sh old mode 100644 new mode 100755 diff --git a/ping.go b/ping.go index 71a4f69..13a963f 100644 --- a/ping.go +++ b/ping.go @@ -1,8 +1,9 @@ package main import ( - probing "github.com/prometheus-community/pro-bing" "runtime" + + probing "github.com/prometheus-community/pro-bing" ) var pinger *probing.Pinger