From 0c9052455eb3ecc7d487d1b9aeeba5ff1902e0c5 Mon Sep 17 00:00:00 2001 From: Michel Loiseleur Date: Thu, 14 Nov 2024 10:02:57 +0100 Subject: [PATCH] chore(ci): clean and fix workflows --- .github/workflows/embed-files.yaml | 31 ---------------------- .github/workflows/sync.yaml | 42 ------------------------------ .github/workflows/test.yaml | 2 +- 3 files changed, 1 insertion(+), 74 deletions(-) delete mode 100644 .github/workflows/embed-files.yaml delete mode 100644 .github/workflows/sync.yaml diff --git a/.github/workflows/embed-files.yaml b/.github/workflows/embed-files.yaml deleted file mode 100644 index e179b04..0000000 --- a/.github/workflows/embed-files.yaml +++ /dev/null @@ -1,31 +0,0 @@ -name: Embed code in markdown files - -on: - pull_request: - branches: - - main - paths: - - 'src/manifests/**.yaml' - - 'api-management/**.md' - - 'api-management/**.yaml' - - 'api-gateway/**.md' - - 'api-gateway/**.yaml' - - 'WALKTHROUGH.md' -jobs: - embed-code: - runs-on: buildjet-2vcpu-ubuntu-2204 - steps: - - uses: actions/checkout@v4 - with: - repository: ${{ github.event.pull_request.head.repo.full_name }} - ref: ${{ github.event.pull_request.head.ref }} - token: ${{ secrets.TRAEFIKER_GITHUB_TOKEN }} - - name: embed code - run: | - python3 hack/mdce/mdce.py -s -g -u - - name: commit and push changes - uses: EndBug/add-and-commit@v9 - with: - message: "chore: updates markdown content" - committer_name: "traefiker@github" - committer_email: "30906710+traefiker@users.noreply.github.com" diff --git a/.github/workflows/sync.yaml b/.github/workflows/sync.yaml deleted file mode 100644 index 86a8216..0000000 --- a/.github/workflows/sync.yaml +++ /dev/null @@ -1,42 +0,0 @@ -name: 🏗️ sync -on: - workflow_dispatch: - push: - branches: - - master - -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 " - 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. diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index cc04b20..71fd47c 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -3,7 +3,7 @@ on: workflow_dispatch: pull_request: branches: - - master + - main paths: - '.github/workflows/test.yaml' - 'src/manifests/**.yaml'