-
Notifications
You must be signed in to change notification settings - Fork 335
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): update go from 1.20.5 to 1.20.6 (#7414)
* chore(deps): bump golang from 1.20.5 to 1.20.6 Signed-off-by: Charly Molter <charly.molter@konghq.com> * chore(deps): update to testcontainers main Signed-off-by: slonka <slonka@users.noreply.github.com> * chore: update dependencies.lock Signed-off-by: Bart Smykla <bartek@smykla.com> --------- Signed-off-by: Charly Molter <charly.molter@konghq.com> Signed-off-by: Krzysztof Słonka <slonka@users.noreply.github.com> Signed-off-by: slonka <slonka@users.noreply.github.com> Signed-off-by: Bart Smykla <bartek@smykla.com> Co-authored-by: Charly Molter <charly.molter@konghq.com> Co-authored-by: Bart Smykla <bartek@smykla.com>
- Loading branch information
1 parent
0167e60
commit b4c2e3f
Showing
11 changed files
with
352 additions
and
10 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Golangci-lint | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- release-* | ||
pull_request: | ||
permissions: | ||
contents: read | ||
jobs: | ||
golangci: | ||
name: lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v4 | ||
with: | ||
cache: false | ||
go-version: 1.20.6 | ||
- uses: golangci/golangci-lint-action@v3 | ||
with: | ||
args: --verbose | ||
version: v1.53.3 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
name: "Update docs" | ||
on: | ||
workflow_dispatch: {} | ||
schedule: | ||
- cron: 0 8 * * * | ||
env: | ||
DOCS_REPO: kumahq/kuma-website | ||
OUTPUT_PATH: app/docs | ||
VERSION_FILE: app/_data/versions.yml | ||
EDITION: kuma | ||
jobs: | ||
generate-docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
ref: master | ||
path: repo | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: "1.20.6" | ||
- name: "sync docs" # loop over all the branches and generate the docs | ||
run: | | ||
cd repo | ||
for b in $(jq -r '.[]' active-branches.json); do | ||
name=$(echo "${b}" | sed 's/release-\(.*\)/\1.x/g' | sed 's/master/dev/g') | ||
echo "${b} ${name}" | ||
git checkout --force "${b}" | ||
mkdir -p ../docs-build/${name} | ||
cp -R docs/generated/raw/* ../docs-build/${name}/ | ||
mkdir -p ../docs-build/raw | ||
if [[ "${b}" == "master" ]]; then | ||
if [[ -f UPGRADE.md ]]; then | ||
cp UPGRADE.md ../docs-build/raw/ | ||
fi | ||
cp CHANGELOG.md ../docs-build/raw/ | ||
cp versions.yml ../docs-build/raw/ | ||
fi | ||
done | ||
- uses: actions/checkout@v3 | ||
with: | ||
repository: ${{ env.DOCS_REPO }} | ||
path: docs | ||
- name: "update versions" | ||
run: | | ||
cd docs | ||
cp -R ../docs-build/* ${{ env.OUTPUT_PATH }}/ | ||
yq -i 'del(.[] | select(.edition == "${{ env.EDITION }}")) | . += load("${{ env.OUTPUT_PATH}}/raw/versions.yml")' ${{ env.VERSION_FILE }} | ||
rm ${{ env.OUTPUT_PATH }}/raw/versions.yml | ||
- name: Generate GitHub app token | ||
id: github-app-token | ||
uses: tibdex/github-app-token@b62528385c34dbc9f38e5f4225ac829252d1ea92 # v1.8.0 | ||
with: | ||
app_id: ${{ secrets.APP_ID }} | ||
private_key: ${{ secrets.APP_PRIVATE_KEY }} | ||
- name: "Create Pull Request" | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
path: docs | ||
commit-message: "chore(deps): update docs from repo source" | ||
signoff: true | ||
branch: chore/docs-sync-${{github.repository}} | ||
body: | | ||
Syncing docs from source code. | ||
Generated by [action](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) | ||
delete-branch: true | ||
title: "chore(deps): update docs from repo source" | ||
draft: false | ||
token: ${{ steps.github-app-token.outputs.token }} | ||
committer: kumahq[bot] <110050114+kumahq[bot]@users.noreply.github.com> | ||
author: kumahq[bot] <110050114+kumahq[bot]@users.noreply.github.com> |
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.