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:
parent
3ec68fbf8c
commit
0c90fb420b
1
.github/workflows/generate.yml
vendored
1
.github/workflows/generate.yml
vendored
@ -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 }}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user