Skip to content

Commit

Permalink
fix github action deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
ushis committed Mar 1, 2024
1 parent 3646cd9 commit acb31a5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 15 deletions.
24 changes: 11 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,12 @@ jobs:
env:
CARCH: ${{ matrix.arch }}
steps:
- id: goarch
run: |
- run: |
case "${{ matrix.arch }}" in
"x86_64") echo "::set-output name=GOARCH::amd64";;
"armv7h") echo "::set-output name=GOARCH::arm";;
"aarch64") echo "::set-output name=GOARCH::arm64";;
*) echo "::set-output name=GOARCH::${{ matrix.arch }}";;
"x86_64") echo "GOARCH=amd64" >> "${GITHUB_ENV}";;
"armv7h") echo "GOARCH=arm" >> "${GITHUB_ENV}";;
"aarch64") echo "GOARCH=arm64" >> "${GITHUB_ENV}";;
*) echo "GOARCH=${{ matrix.arch }}" >> "${GITHUB_ENV}";;
esac
- run: |
pacman -Syu --noconfirm
Expand All @@ -92,7 +91,7 @@ jobs:
PACKAGE_SIGNING_KEY: ${{ secrets.PACKAGE_SIGNING_KEY }}
- uses: actions/download-artifact@v4
with:
name: gesundheit-${{ steps.goarch.outputs.GOARCH }}
name: gesundheit-${{ env.GOARCH }}
path: build
- uses: "actions/checkout@v4"
with:
Expand Down Expand Up @@ -120,16 +119,15 @@ jobs:
matrix:
arch: ["i386", "amd64", "armhf", "arm64"]
steps:
- id: goarch
run: |
- run: |
case "${{ matrix.arch }}" in
"i386") echo "::set-output name=GOARCH::386";;
"armhf") echo "::set-output name=GOARCH::arm";;
*) echo "::set-output name=GOARCH::${{ matrix.arch }}";;
"i386") echo "GOARCH=386" >> "${GITHUB_ENV}";;
"armhf") echo "GOARCH=arm" >> "${GITHUB_ENV}";;
*) echo "GOARCH=${{ matrix.arch }}" >> "${GITHUB_ENV}";;
esac
- uses: actions/download-artifact@v4
with:
name: gesundheit-${{ steps.goarch.outputs.GOARCH }}
name: gesundheit-${{ env.GOARCH }}
path: bin
- uses: "actions/checkout@v4"
with:
Expand Down
4 changes: 2 additions & 2 deletions check/dns-record/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ func (c Check) Exec() result.Result {
}
for _, r := range records {
if r == c.Value {
return result.OK("%s %s resolves to %s", c.Type, c.Name, c.Value)
return result.OK("%s %s resolves to %#v", c.Type, c.Name, c.Value)
}
}
if len(records) == 0 {
return result.Fail("could not find any records for %s %s", c.Type, c.Name)
}
return result.Fail("%s %s resolves to %s", c.Type, c.Name, records[0])
return result.Fail("%s %s resolves to %#v", c.Type, c.Name, records[0])
}

func resolver(addr string) *net.Resolver {
Expand Down

0 comments on commit acb31a5

Please sign in to comment.