Skip to content

Commit

Permalink
chore: update hub-crds PR automation
Browse files Browse the repository at this point in the history
  • Loading branch information
darkweaver87 authored Jun 7, 2024
1 parent 8ba94de commit ff284ee
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/update-crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ concurrency:
env:
GIT_TAG: ${{ inputs.tag || github.ref_name }}
jobs:
update-traefik-hub-helm-chart:
update-traefik-helm-chart:
runs-on: ubuntu-latest
steps:
- name: checkout
Expand All @@ -23,20 +23,20 @@ jobs:
repository: traefik/hub-crds
path: ${{ github.workspace }}/hub-crds
ref: ${{ env.GIT_TAG }}
- name: checkout traefik-hub-helm-chart repo
- name: checkout traefik-helm-chart repo
uses: actions/checkout@v4
with:
repository: traefik/traefik-hub-helm-chart
repository: traefik/traefik-helm-chart
ref: main
token: ${{ secrets.GH_TOKEN }}
path: ${{ github.workspace }}/traefik-hub-helm-chart
path: ${{ github.workspace }}/traefik-helm-chart
- name: copy CRDs
run: rsync -crv --delete --exclude='kustomization.yaml' --exclude='traefik.io_*.yaml' --exclude='traefik.containo.us_*.yaml' --exclude='*.go' ${{ github.workspace }}/hub-crds/pkg/apis/hub/v1alpha1/crd/ ${{ github.workspace }}/traefik-hub-helm-chart/traefik-hub/crds/
run: rsync -crv --delete --exclude='kustomization.yaml' --exclude='traefik.io_*.yaml' --exclude='*.go' ${{ github.workspace }}/hub-crds/pkg/apis/hub/v1alpha1/crd/ ${{ github.workspace }}/traefik-helm-chart/traefik/crds/
- name: create PR
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GH_TOKEN }}
path: traefik-hub-helm-chart
path: traefik-helm-chart
commit-message: "chore: update CRDs to ${{ env.GIT_TAG }}"
committer: "Traefiker <[email protected]>"
author: "${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>"
Expand All @@ -57,10 +57,10 @@ jobs:
TARGET_BRANCH: main
CRDS_VERSION: ${{ inputs.tag || github.ref_name }}
secrets: inherit
update-hub-install:
update-hub-api-management:
uses: ./.github/workflows/template-update-crds-go-project.yaml
with:
TARGET_REPO: traefik/hub-install
TARGET_REPO: traefik/hub-api-management
TARGET_BRANCH: master
CRDS_VERSION: ${{ inputs.tag || github.ref_name }}
secrets: inherit
Expand Down

0 comments on commit ff284ee

Please sign in to comment.