Improved some logging messages and --log-level NONE behavior #5
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: Update wiki docs | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
concurrency: | |
group: wiki | |
cancel-in-progress: true | |
permissions: | |
contents: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.23.1' | |
- name: Build Binary and generate doc markdown files | |
run: | | |
mkdir -p output | |
go build -o output/azcopy | |
cd output | |
./azcopy doc | |
cd doc | |
sed -i 's/\.md//' * | |
- name: Upload build artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: build-artifacts | |
path: output/doc/ | |
- name: Checkout Wiki | |
uses: actions/checkout@v4 | |
with: | |
repository: ${{github.repository}}.wiki | |
path: ${{github.repository}}.wiki | |
- name: Push to wiki | |
run: | | |
set -e | |
cd $GITHUB_WORKSPACE/${{github.repository}}.wiki | |
cp -r ../../output/doc/* . | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git add . | |
git diff-index --quiet HEAD || git commit -m "action: wiki sync" && git push |