You've already forked goreleaser
mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-11-06 09:09:29 +02:00
build: fix generate workflow
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
if [ "${1: -4}" == ".deb" ] || [ "${1: -4}" == ".rpm" ]; then
|
||||
cd dist
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
# unshallow (needed for the rss plugin)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
FILES=$(git diff --cached --name-only --diff-filter=ACMR)
|
||||
|
||||
gofumpt -l -w .
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user