-
Notifications
You must be signed in to change notification settings - Fork 237
45 lines (40 loc) · 1.32 KB
/
update-readme.yml
File metadata and controls
45 lines (40 loc) · 1.32 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Update README
on:
workflow_dispatch:
jobs:
update-readme:
name: Update README
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
repository: vdesabou/kafka-docker-playground
fetch-depth: 0
# submodules: recursive
ssh-key: ${{ secrets.GH_SSH_KEY_FILE }}
ssh-strict: 'false'
- name: Update DOCS
run: |
sudo gem install bashly
cd ./scripts/cli
./playground update-docs
- name: Update README and update cache-versions.env
run: |
cd ./scripts/cli
./playground update-readme --tags "8.2.0"
env:
GH_TOKEN: ${{ secrets.CI_GITHUB_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID}}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY}}
AWS_REGION: ${{ vars.AWS_REGION}}
- name: Pushes docs
uses: dmnemec/copy_file_to_another_repo_action@main
env:
API_TOKEN_GITHUB: ${{ secrets.CI_GITHUB_TOKEN }}
with:
source_file: './docs'
destination_repo: 'vdesabou/kafka-docker-playground-docs'
user_email: 'vincent.desaboulin@gmail.com'
user_name: 'vdesabou'
commit_message: 'updating with latest versions'