-
Notifications
You must be signed in to change notification settings - Fork 7
43 lines (42 loc) · 1.33 KB
/
sync.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
40
41
42
43
name: 🏗️ sync
on:
workflow_dispatch:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
DOCKER_NON_INTERACTIVE: true
jobs:
sync-hub:
#runs-on: buildjet-2vcpu-ubuntu-2204
runs-on: ubuntu-latest
steps:
- name: checkout hub-doc repo
uses: actions/checkout@v4
with:
repository: traefik/hub-doc
ref: main
token: ${{ secrets.TRAEFIKER_GITHUB_TOKEN }}
path: ${{ github.workspace }}/hub-doc
- name: copy files
run: |
cd ${{ github.workspace }}/hub-doc
make sync
#- name: create PR
# uses: peter-evans/create-pull-request@v6
# with:
# token: ${{ secrets.TRAEFIKER_GITHUB_TOKEN }}
# path: hub-doc
# commit-message: "chore: update tutorials"
# committer: "Traefiker <[email protected]>"
# author: "${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>"
# signoff: false
# branch: update-files-${{ github.ref_name }}
# delete-branch: true
# title: 'chore: update tutorials'
# labels: kind/enhancement,status/2-needs-review
# body: |
# ### Motivation
#
# Update tutorials with latest verified code.