Skip to content

Commit

Permalink
feat: add sync job
Browse files Browse the repository at this point in the history
  • Loading branch information
darkweaver87 authored Jul 18, 2024
1 parent 4615602 commit 48211c8
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/sync.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: 🏗️ sync
on:
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
sync-hub:
runs-on: buildjet-2vcpu-ubuntu-2204
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.

0 comments on commit 48211c8

Please sign in to comment.