Skip to content

keyctl05: Improve the dns_res_payload for boundary testing #3

keyctl05: Improve the dns_res_payload for boundary testing

keyctl05: Improve the dns_res_payload for boundary testing #3

Workflow file for this run

# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (c) Linux Test Project, 2021
name: "Mirror doc to wiki"
on:
push:
branches:
- master
permissions: {}
jobs:
mirror:
permissions:
contents: write # for git push
runs-on: ubuntu-latest
if: ${{ github.repository == 'linux-test-project/ltp' }}
steps:
- name: Checkout LTP
uses: actions/checkout@v2
with:
path: ltp
- name: Checkout LTP wiki
uses: actions/checkout@v2
with:
repository: "linux-test-project/ltp.wiki"
path: ltp.wiki
- name: Copy files, push
run: |
git config --global user.email "[email protected]"
git config --global user.name "Wiki mirror"
dir="$GITHUB_WORKSPACE/ltp/doc/"
cd $dir
commit=$(git log --pretty=format:"%h (\"%s\")" -1 .)
cd $GITHUB_WORKSPACE/ltp.wiki
# don't forget to add new extensions
cp -v $dir/*.asciidoc .
git add .
# only commit if there are changes
git diff-index --quiet HEAD -- || git commit -m "Update to $commit" .
git push