-
Notifications
You must be signed in to change notification settings - Fork 2
28 lines (26 loc) · 830 Bytes
/
docs.yaml
File metadata and controls
28 lines (26 loc) · 830 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Build docs
on:
push:
paths:
- '**.md'
jobs:
build:
name: Copy file
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Rename file
run: |
mv README.md ${{ github.event.repository.name }}.md
- name: Set subfolder
run: echo "SUB_FOLDER=$(echo "${{ github.event.repository.name }}" | grep -o '[^-]*$')" >> $GITHUB_ENV
- name: Print subfolder
run: echo $SUB_FOLDER
- uses: GuillaumeFalourd/copy-push-files@v1
with:
source_files: ${{ github.event.repository.name }}.md
remote_repository: https://github.com/krateoplatformops/krateo-docs
access_token: ${{ secrets.HELM_CHARTS_BOT }}
target_dir: docs/${{ env.SUB_FOLDER }}s
target_branch: main