-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (39 loc) · 1.53 KB
/
docker-wiki-update.yml
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
46
name: Download manifest artifacts from GitHub, tag and push to DockerHub
# We're doing everything in one workflow on purpose
# This way we make sure we don't access wiki pages from several jobs simultaneously
on:
workflow_call:
jobs:
tag-push:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo ⚡️
uses: actions/checkout@v3
- name: Create dev environment 📦
uses: ./.github/actions/create-dev-env
with:
platform: amd64
- name: Download all manifests and history lines 📥
uses: ./.github/actions/download-manifests
with:
histLineDir: /tmp/hist_lines/
manifestDir: /tmp/manifests/
- name: Display structure of downloaded files 🔍️
run: |
ls -R /tmp/hist_lines/
ls -R /tmp/manifests/
shell: bash
- name: Checkout Wiki Repo 📃
uses: actions/checkout@v3
with:
repository: ${{ github.repository }}.wiki
path: wiki/
- name: Update wiki page 🏷
run: python3 -m tagging.update_wiki_page --wiki-dir wiki/ --hist-line-dir /tmp/hist_lines/ --manifest-dir /tmp/manifests/
shell: bash
- name: Push Wiki to GitHub 📤
if: github.ref == 'refs/heads/main' || github.event_name == 'schedule'
uses: stefanzweifel/git-auto-commit-action@49620cd3ed21ee620a48530e81dba0d139c9cb80 # dependabot updates to latest release
with:
commit_message: "Automated wiki publish for ${{ github.sha }}"
repository: wiki/