Files
coredns/.github/workflows/make.doc.yml
Yong Tang c996a26364 Add verbose log in GitHub Actions CI for make -f Makefile.doc (#4681)
Our GitHub Actions CI is having some issues with `make -f Makefile.doc`
as the related changes that should have triggered the build didn't
work for the past 3 months (since march).

This PR adds verbose to GitHub Actions CI to see if we can get more information.

Note this PR just add `set -x` to show detailed step. Will not impact anything else.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2021-06-08 09:26:38 -07:00

39 lines
960 B
YAML

name: Make Doc
on:
schedule:
- cron: '22 10 * * 0'
jobs:
fix:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Setup Go
uses: actions/setup-go@v2
-
name: Update Docs
run: |
bash -x -e ./.github/fixup_file_mtime.sh
make -f Makefile.doc
-
name: Set up Git
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config user.name "coredns[bot]"
git config user.email "bot@bot.coredns.io"
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
-
name: Commit and push changes
run: |
set -x -e
git add .
if output=$(git status --porcelain) && [ ! -z "$output" ]; then
git commit -s -m 'auto make -f Makefile.doc'
git push
fi