From a683b0c7246656b3497848996b07812db12868cc Mon Sep 17 00:00:00 2001 From: Fanny Jiang Date: Fri, 29 Dec 2023 16:32:07 -0500 Subject: [PATCH] configure git --- .github/workflows/release-community-pr.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release-community-pr.yml b/.github/workflows/release-community-pr.yml index 129cefdd8..7776bf77e 100644 --- a/.github/workflows/release-community-pr.yml +++ b/.github/workflows/release-community-pr.yml @@ -12,7 +12,7 @@ jobs: # VERSION: ${${{ github.ref_name }}:1:5} # use version from release branch name # COMMUNITY_BRANCH_NAME: ${{ github.actor }}/datadog-operator-v$VERSION VERSION: vX.Y.Z - COMMUNITY_BRANCH_NAME: ${{ github.actor }}/datadog-operator-v$VERSION + COMMUNITY_BRANCH_NAME: ${{ github.actor }}/datadog-operator-v${VERSION} steps: # - name: set version # id: set-version @@ -32,6 +32,11 @@ jobs: repository: DataDog/community-operators token: ${{ secrets.GITHUB_TOKEN }} + - name: Configure git user + run: | + git config user.name ${{ github.actor }} + git config user.email ${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com + - name: sync fork env: GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} @@ -52,10 +57,6 @@ jobs: run: | mkdir operators/datadog-operator/$VERSION cp -R ./tmp/bundle/* operators/datadog-operator/$VERSION - - name: Configure git user - run: | - git config user.name ${{ github.actor }} - git config user.email ${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com - name: create PR # env: # GITHUB_TOKEN: $GITHUB_TOKEN