-
Notifications
You must be signed in to change notification settings - Fork 5
executable file
·43 lines (42 loc) · 1.27 KB
/
generator.yml
File metadata and controls
executable file
·43 lines (42 loc) · 1.27 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
name: Generator
on:
workflow_dispatch:
schedule:
- cron: '0 8 * * *'
jobs:
generator:
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: auto generator by dockerhub
run: |
bash download.sh
export SYNC_DIR=docs/docker
export SYNC_HUB=docker.io/labring
/tmp/cluster-image-docs
- name: auto generator by aliyun
run: |
export SYNC_DIR=docs/aliyun-shanghai
export SYNC_HUB=registry.cn-shanghai.aliyuncs.com/labring
/tmp/cluster-image-docs
- uses: peter-evans/create-pull-request@v7
with:
title: 'workflow: Automated Workflow Update for ${{steps.get-current-tag.outputs.tag }}'
body: |
Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action
commit-message: |
🤖 add workflow change for images.
branch: workflow
base: main
signoff: true
delete-branch: true
reviewers: cuisongliu
branch-suffix: short-commit-hash
labels: sync-docs