Commit 619486b 1 parent 42f04b1 commit 619486b Copy full SHA for 619486b
File tree 3 files changed +13
-6
lines changed
3 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -24,11 +24,11 @@ jobs:
24
24
run : make tools generate-mocks
25
25
- name : Check for uncommited files
26
26
run : |
27
- export FILES=$(git ls-files -o -m --directory --exclude-standard --no-empty-directory)
28
- export LINES=$(echo "$FILES" | awk 'NF' | wc -l)
29
- if [ $ LINES -ne 0 ]; then
27
+ FILES=$(git ls-files -o -m --directory --exclude-standard --no-empty-directory)
28
+ LINES=$(echo "$FILES" | awk 'NF' | wc -l)
29
+ if [ "${ LINES}" -ne 0 ]; then
30
30
echo "Detected files that need to be committed:"
31
- echo "$FILES" | sed -e "s/ ^/ / "
31
+ echo "${ FILES// ^/ } "
32
32
echo ""
33
33
echo "Mock skeletons are not up-to-date, you may have forgotten to run mockery before committing your changes."
34
34
exit 1
61
61
uses : golangci/golangci-lint-action@3cfe3a4abbb849e10058ce4af15d205b6da42804
62
62
with :
63
63
version : v1.56.2
64
+ - name : actionlint
65
+ run : |
66
+ make tools
67
+ actionlint -verbose -color
68
+ shell : bash
64
69
website-lint :
65
70
runs-on : ubuntu-latest
66
71
steps :
Original file line number Diff line number Diff line change 47
47
run : |
48
48
LAST_RELEASE=$(curl -sSfL -X GET https://api.github.com/repos/mongodb/terraform-provider-mongodbatlas/releases/latest | jq -r '.tag_name | ltrimstr("v")')
49
49
echo "Last release: $LAST_RELEASE"
50
- echo "last_provider_version=$LAST_RELEASE" >> $ GITHUB_OUTPUT
50
+ echo "last_provider_version=${ LAST_RELEASE} " >> "${ GITHUB_OUTPUT}"
51
51
52
52
change-detection :
53
53
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 55
55
gpg_private_key : ${{ secrets.GPG_PRIVATE_KEY }}
56
56
passphrase : ${{ secrets.PASSPHRASE }}
57
57
- name : Set the user terminal
58
- run : export GPG_TTY=$(tty)
58
+ run : |
59
+ GPG_TTY=$(tty)
60
+ export GPG_TTY
59
61
- name : Run GoReleaser
60
62
uses : goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8
61
63
with :
You can’t perform that action at this time.
0 commit comments