mirror of
https://github.com/coredns/coredns.git
synced 2025-11-02 10:13:14 -05:00
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>
39 lines
960 B
YAML
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
|