From 3a32aeecea427858dac45765cc0f023ae95746b4 Mon Sep 17 00:00:00 2001 From: Max Golionko Date: Tue, 27 Aug 2024 14:09:18 +0200 Subject: [PATCH] chore: update commiter for PR creation step (#1087) * update commiter for PR creation step * update commiter for PR create step --- .github/workflows/crds.yaml | 4 +++- .github/workflows/docs.yaml | 3 ++- .github/workflows/operatorhub.yaml | 3 ++- .github/workflows/sandbox.yaml | 3 ++- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/crds.yaml b/.github/workflows/crds.yaml index 0bccbedf..4784267c 100644 --- a/.github/workflows/crds.yaml +++ b/.github/workflows/crds.yaml @@ -29,6 +29,7 @@ jobs: - name: Import GPG key uses: crazy-max/ghaction-import-gpg@v6 + id: import-gpg with: gpg_private_key: ${{ secrets.VM_BOT_GPG_PRIVATE_KEY }} passphrase: ${{ secrets.VM_BOT_PASSPHRASE }} @@ -37,6 +38,7 @@ jobs: workdir: __vm-charts-repo - name: Update crd yaml in chart repo + id: update run: | cp ../__vm-operator-repo/config/crd/overlay/crd.yaml charts/victoria-metrics-operator/crd.yaml cp ../__vm-operator-repo/config/crd/overlay/crd.yaml charts/victoria-metrics-k8s-stack/charts/crds/crds/crd.yaml @@ -50,7 +52,7 @@ jobs: add-paths: charts commit-message: Automatic update operator crds from ${{ github.repository }}@${{ steps.update.outputs.SHORT_SHA }} signoff: true - author: Github Actions + committer: "Github Actions <${{ steps.import-gpg.outputs.email }}>" path: __vm-charts-repo branch: operator-crd-update-${{ steps.update.outputs.BUILDTIME }} token: ${{ secrets.VM_BOT_GH_TOKEN }} diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 1b001ba5..a8a6f7dd 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -37,6 +37,7 @@ jobs: id: go - name: Import GPG key + id: import-gpg uses: crazy-max/ghaction-import-gpg@v6 with: gpg_private_key: ${{ secrets.VM_BOT_GPG_PRIVATE_KEY }} @@ -66,7 +67,7 @@ jobs: add-paths: docs/operator commit-message: Automatic update operator docs from ${{ github.repository }}@${{ steps.update.outputs.SHORT_SHA }} signoff: true - author: Github Actions + committer: "Github Actions <${{ steps.import-gpg.outputs.email }}>" path: __vm-docs-repo branch: operator-docs-update-${{ steps.update.outputs.BUILDTIME }} token: ${{ secrets.VM_BOT_GH_TOKEN }} diff --git a/.github/workflows/operatorhub.yaml b/.github/workflows/operatorhub.yaml index a614c49b..6cc0d387 100644 --- a/.github/workflows/operatorhub.yaml +++ b/.github/workflows/operatorhub.yaml @@ -30,6 +30,7 @@ jobs: - name: Import GPG key uses: crazy-max/ghaction-import-gpg@v6 + id: import-gpg with: gpg_private_key: ${{ secrets.VM_BOT_GPG_PRIVATE_KEY }} passphrase: ${{ secrets.VM_BOT_PASSPHRASE }} @@ -62,7 +63,7 @@ jobs: add-paths: operators/victoriametrics-operator commit-message: 'victoriametrics-operator: ${{ steps.update.outputs.VERSION }}' signoff: true - author: Github Actions + committer: "Github Actions <${{ steps.import-gpg.outputs.email }}>" path: __k8s-operatorhub-repo push-to-fork: ${{ matrix.repo.fork }} branch: vm-operator-release-${{ steps.update.outputs.VERSION }} diff --git a/.github/workflows/sandbox.yaml b/.github/workflows/sandbox.yaml index b3445e16..115e4f39 100644 --- a/.github/workflows/sandbox.yaml +++ b/.github/workflows/sandbox.yaml @@ -22,6 +22,7 @@ jobs: - name: Import GPG key uses: crazy-max/ghaction-import-gpg@v6 + id: import-gpg with: gpg_private_key: ${{ secrets.VM_BOT_GPG_PRIVATE_KEY }} passphrase: ${{ secrets.VM_BOT_PASSPHRASE }} @@ -46,7 +47,7 @@ jobs: add-paths: ${{ steps.update.outputs.OPERATOR_PATH }} commit-message: Automatic update operator version on sandbox from ${{ github.repository }}@${{ steps.update.outputs.SHORT_SHA }} signoff: true - author: Github Actions + committer: "Github Actions <${{ steps.import-gpg.outputs.email }}>" path: __vm-ops-repo branch: sandbox-operator-release-automation token: ${{ secrets.VM_BOT_GH_TOKEN }}