-
Notifications
You must be signed in to change notification settings - Fork 56
39 lines (33 loc) · 1.58 KB
/
update-readme.yaml
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
on:
push:
branches:
- main
name: Update READMEs on Docker Hub
jobs:
update-main:
runs-on: ubuntu-latest
name: update-readme_${{ matrix.config.repository }}
env:
REGISTRY_NAMESPACE: rstudio
strategy:
fail-fast: false
matrix:
config:
- {prefix: 'rstudio-', repository: 'workbench', readme_path: './workbench/README.md'}
- {prefix: 'rstudio-', repository: 'connect', readme_path: './connect/README.md'}
- {prefix: 'rstudio-', repository: 'connect-content-init', readme_path: './connect-content-init/README.md'}
- {prefix: '', repository: 'content-base', readme_path: './content/base/README.md'}
- {prefix: '', repository: 'content-pro', readme_path: './content/pro/README.md'}
- {prefix: 'rstudio-', repository: 'package-manager', readme_path: './package-manager/README.md'}
- {prefix: '', repository: 'r-session-complete', readme_path: './r-session-complete/README.md'}
- {prefix: 'rstudio-', repository: 'workbench-for-microsoft-azure-ml', readme_path: './workbench-for-microsoft-azure-ml/README.md'}
steps:
- name: Check Out Repo
uses: actions/checkout@v3
- name: Docker Hub Description
uses: peter-evans/[email protected]
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
repository: ${{ env.REGISTRY_NAMESPACE }}/${{ matrix.config.prefix }}${{ matrix.config.repository }}
readme-filepath: ${{ matrix.config.readme_path }}