Skip to content

Commit

Permalink
Remove nightly builds
Browse files Browse the repository at this point in the history
Removes nightly builds. Updates the release
workflow to generate CLI docs. Updates the
PR check and removes CLI doc generation.
  • Loading branch information
gorkem committed Mar 20, 2024
1 parent bfcfb15 commit c40928b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 70 deletions.
60 changes: 0 additions & 60 deletions .github/workflows/nightly-build.yaml

This file was deleted.

11 changes: 1 addition & 10 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.21.6
go-version-file: 'go.mod'

- name: Check go.mod
run: |
Expand Down Expand Up @@ -57,15 +57,6 @@ jobs:
exit 1
fi
- name: Check CLI docs generation
run: |
docs/src/docs/cli/generate.sh > /dev/null
if [[ ! -z $(git status -s) ]]; then
echo "CLI documentation is out of date"
echo "Run docs/src/docs/cli/generate.sh and commit the result"
exit 1
fi
- name: Check for trailing whitespace
run: |
files=$(grep -E -lI --exclude '*.svg' --exclude 'docs/*' " +$" $(git ls-files) || true)
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,14 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
AC_PASSWORD: ${{ secrets.AC_PASSWORD }}
AC_USERNAME: ${{ secrets.AC_USERNAME }}

- name: Generate CLI documentation
run: |
docs/src/docs/cli/generate.sh > /dev/null
- name: PR for CLI documentation
uses: peter-evans/create-pull-request@v6
with:
add-paths: |
docs/*.md
commit-message: "docs: update CLI documentation for ${{ github.ref_name }}"

0 comments on commit c40928b

Please sign in to comment.