-
Notifications
You must be signed in to change notification settings - Fork 4
executable file
·42 lines (41 loc) · 1.35 KB
/
generator.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
name: Generator
on:
workflow_dispatch:
schedule:
- cron: '0 8 * * *'
jobs:
generator:
runs-on: ubuntu-20.04
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@v5
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
token: ${{ secrets.GH_PAT }}
reviewers: cuisongliu
branch-suffix: short-commit-hash
labels: sync-docs
committer: sealos-ci-robot <[email protected]>
author: sealos-ci-robot <[email protected]>