-
Notifications
You must be signed in to change notification settings - Fork 932
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into add-droplets-relationships-main
- Loading branch information
Showing
206 changed files
with
1,026 additions
and
1,004 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: golangci-lint | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v9.*" | ||
- "v8.*" | ||
- "v7.*" | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
branches: | ||
- main | ||
- v9 | ||
- v8 | ||
- v7 | ||
paths-ignore: | ||
- "doc/**" | ||
- ".gitpod.yml" | ||
- "README.md" | ||
|
||
jobs: | ||
golangci: | ||
name: lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: '0' | ||
- name: Set up Go 1.x | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: go.mod | ||
check-latest: true | ||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v6 | ||
with: | ||
version: v1.58 | ||
args: -v --exclude-dirs cf --exclude-dirs fixtures --exclude-dirs plugin --exclude-dirs command/plugin | ||
format: | ||
name: Run go fmt | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: '0' | ||
- name: Set Up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: go.mod | ||
check-latest: true | ||
- name: Run go fmt | ||
run: go fmt && git diff --exit-code |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1067,7 +1067,7 @@ jobs: | |
uses: actions/checkout@v4 | ||
with: | ||
repository: cloudfoundry/CLAW | ||
ref: develop | ||
ref: master | ||
path: CLAW | ||
ssh-key: ${{ secrets.GIT_SSH_KEY_CLAW }} | ||
|
||
|
@@ -1076,18 +1076,23 @@ jobs: | |
set -ex | ||
pushd CLAW | ||
echo "- ${VERSION_BUILD}" >> claw-variables.yml | ||
git add claw-variables.yml | ||
if ! [ -z "$(git status --porcelain)"]; then | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git commit -m "Add CF CLI ${VERSION_BUILD}" | ||
if grep --quiet "${VERSION_BUILD}" "claw-variables.yml" ; then | ||
echo 'Version already exists in CLAW.' | ||
exit 1 | ||
else | ||
echo "no new version to commit" | ||
echo "- ${VERSION_BUILD}" >> claw-variables.yml | ||
git add claw-variables.yml | ||
if ! [ -z "$(git status --porcelain)"]; then | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git commit -m "Add CF CLI ${VERSION_BUILD}" | ||
else | ||
echo "no new version to commit" | ||
fi | ||
git push | ||
fi | ||
git push | ||
popd | ||
# vim: set sw=2 ts=2 sts=2 et tw=78 foldlevel=2 fdm=indent nospell: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.