🧹Deprecate UseSFTP and add UseSCP, SFTP on by default (#372) #386
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
name: Ensure Code is generated and Docs are compiled | |
on: | |
push: | |
jobs: | |
ensure-generate: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4.1.1 | |
with: | |
ref: ${{ github.ref }} | |
- name: Import environment variables from file | |
run: cat ".github/env" >> $GITHUB_ENV | |
- name: Set up Go | |
uses: actions/setup-go@v5.3.0 | |
with: | |
go-version: ">=${{ env.golang-version }}" | |
cache: false | |
- run: | | |
make generate | |
if [[ -z "$(git status -s)" ]]; then | |
echo "OK" | |
else | |
echo "Docs have been updated, but the compiled docs have not been committed." | |
echo "Run 'make build-docs', and commit the result to resolve this error." | |
exit 1 | |
fi |