Skip to content

Commit

Permalink
feat: add nullblob opt everywhere (#18)
Browse files Browse the repository at this point in the history
* feat: add nullblob opt everywhere

* fix(workflows): pass GITHUB_TOKEN
  • Loading branch information
tcodes0 authored Sep 6, 2024
1 parent b694ee0 commit 4d628c5
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 10 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ jobs:
BASH_ENV: ./lib.sh
DRY_RUN: false
TAGS_FILE: tags.txt
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./workflows/release/tag.sh
3 changes: 2 additions & 1 deletion .github/workflows/release_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,15 @@ jobs:
uses: actions/setup-go@v5
with:
go-version: 1.23
- run: go install github.com/tcodes0/go/cmd/changelog
- run: go install github.com/tcodes0/go/cmd/changelog@latest

- name: Update changelog
shell: bash
env:
CHANGELOG_FILE: CHANGELOG.md
BASH_ENV: ./lib.sh
TAGS_FILE: tags.txt
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./workflows/release/changelog.sh "${{ inputs.url }}" "${{ inputs.title }}" "${{ inputs.tag_prefix }}"

- name: Open PR
Expand Down
2 changes: 1 addition & 1 deletion ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# at https://opensource.org/license/BSD-3-clause.

set -euo pipefail
shopt -s globstar
shopt -s globstar nullglob

##########################
### vars and functions ###
Expand Down
2 changes: 1 addition & 1 deletion go/generate_mocks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
### options, imports, mocks ###

set -euo pipefail
shopt -s globstar
shopt -s globstar nullglob
trap 'err $LINENO' ERR

##########################
Expand Down
2 changes: 1 addition & 1 deletion go/lint_fix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# at https://opensource.org/license/BSD-3-clause.

set -euo pipefail
shopt -s globstar
shopt -s globstar nullglob
trap 'err $LINENO' ERR

##########################
Expand Down
2 changes: 1 addition & 1 deletion migration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# at https://opensource.org/license/BSD-3-clause.

set -euo pipefail
shopt -s globstar
shopt -s globstar nullglob
trap 'err $LINENO' ERR

##########################
Expand Down
2 changes: 1 addition & 1 deletion template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# template for bash scripts

set -euo pipefail
shopt -s globstar
shopt -s globstar nullglob
trap 'err $LINENO' ERR

##########################
Expand Down
2 changes: 1 addition & 1 deletion workflows/main/commit_lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# check that commit messages and PR title are conventional commits

set -euo pipefail
shopt -s globstar
shopt -s globstar nullglob
trap 'err $LINENO' ERR

##########################
Expand Down
2 changes: 1 addition & 1 deletion workflows/main/diff.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# calls git diff and exists if there are changes

set -euo pipefail
shopt -s globstar
shopt -s globstar nullglob
trap 'err $LINENO' ERR

##############
Expand Down
2 changes: 1 addition & 1 deletion workflows/release/changelog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# Args: 1=url 2=title 3=prefix

set -euo pipefail
shopt -s globstar
shopt -s globstar nullglob
trap 'err $LINENO' ERR

##########################
Expand Down
2 changes: 1 addition & 1 deletion workflows/release/tag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# parses changelog and pushes tags the newest release

set -euo pipefail
shopt -s globstar
shopt -s globstar nullglob
trap 'err $LINENO' ERR

##########################
Expand Down

0 comments on commit 4d628c5

Please sign in to comment.