mirror of
https://github.com/JasonN3/build-container-installer.git
synced 2025-12-25 10:57:55 +01:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
50 lines
1.2 KiB
YAML
50 lines
1.2 KiB
YAML
name: Update Wiki
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- 'docs/**'
|
|
- '.github/workflows/update_wiki.yml'
|
|
|
|
jobs:
|
|
update-wiki:
|
|
name: Update Wiki
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
steps:
|
|
- name: Install packages
|
|
run: |
|
|
sudo apt install -y make rsync
|
|
# Checkout Main Repo
|
|
- uses: actions/checkout@v5
|
|
|
|
# Checkout Wiki Repo
|
|
- uses: actions/checkout@v5
|
|
with:
|
|
repository: ${{github.repository}}.wiki
|
|
persist-credentials: true
|
|
path: wiki
|
|
ref: master
|
|
|
|
# Generate final files
|
|
- name: Generate Files
|
|
run: |
|
|
cd ${GITHUB_WORKSPACE}/docs
|
|
make
|
|
|
|
# Copy Docs
|
|
- name: Copy files
|
|
run: |
|
|
rsync -av --exclude='.git/*' ${GITHUB_WORKSPACE}/docs/ ${GITHUB_WORKSPACE}/wiki/
|
|
|
|
# Push Changes
|
|
- name: Push changes
|
|
run: |
|
|
cd ${GITHUB_WORKSPACE}/wiki/
|
|
git config --local user.email "action@github.com"
|
|
git config --local user.name "GitHub Action"
|
|
git add .
|
|
git commit -m "Add changes"
|
|
git push
|