1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2024-12-27 01:33:39 +02:00

build: fix generate workflow

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
Carlos Alexandro Becker 2023-12-26 13:18:46 -03:00
parent 3ec68fbf8c
commit 0c90fb420b
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940
6 changed files with 8 additions and 7 deletions

View File

@ -23,6 +23,7 @@ jobs:
with:
version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }}
- run: "go install mvdan.cc/gofumpt@latest"
- run: task docs:releases
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -e
if [ "${1: -4}" == ".deb" ] || [ "${1: -4}" == ".rpm" ]; then
cd dist

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -euo pipefail
get_last_page() {
@ -21,7 +21,7 @@ generate() {
curl \
-H "Authorization: Bearer $GITHUB_TOKEN" \
-sSf "$url?page=$page" |
jq 'map({tag_name: .tag_name})' >"$tmp/$i.json"
jq 'map({tag_name: .tag_name})' >"$tmp/$i.json"
done
jq -s 'add' "$tmp"/*.json >"$file"

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -euo pipefail
# unshallow (needed for the rss plugin)

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
FILES=$(git diff --cached --name-only --diff-filter=ACMR)
gofumpt -l -w .

View File

@ -1,9 +1,9 @@
#!/bin/bash
#!/usr/bin/env bash
set -o pipefail && TEST_OPTIONS="-json" task test | tee output.json | tparse -follow
success=$?
set -e
NO_COLOR=1 tparse -format markdown -slow 10 -file output.json > $GITHUB_STEP_SUMMARY
NO_COLOR=1 tparse -format markdown -slow 10 -file output.json >$GITHUB_STEP_SUMMARY
exit $success