Skip to content

Fix bug in ReadDigest() function #18

Fix bug in ReadDigest() function

Fix bug in ReadDigest() function #18

Workflow file for this run

name: goreleaser
on:
push:
tags: ['*']
jobs:
goreleaser:
runs-on: ubuntu-latest
outputs:
hashes: ${{ steps.hash.outputs.hashes }}
steps:
- uses: actions/checkout@v4
- name: Unshallow
run: git fetch --prune --unshallow
- uses: actions/setup-go@v5
with:
go-version: 1.22
check-latest: true
- uses: goreleaser/goreleaser-action@v5
id: run-goreleaser
with:
version: "~> v1.19"
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Generate subject
id: hash
env:
ARTIFACTS: "${{ steps.run-goreleaser.outputs.artifacts }}"
run: |
set -euo pipefail
checksum_file=$(echo "$ARTIFACTS" | jq -r '.[] | select (.type=="Checksum") | .path')
echo "hashes=$(cat $checksum_file | base64 -w0)" >> $GITHUB_OUTPUT