From 79347d1763b71c9ce47c44080259c865fb39ec3c Mon Sep 17 00:00:00 2001 From: David Zager Date: Thu, 25 Jul 2024 13:18:46 -0400 Subject: [PATCH] :seedling: fixes to branch creation workflow again (#90) Signed-off-by: David Zager --- .github/workflows/_cut-release-branches.yaml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/_cut-release-branches.yaml b/.github/workflows/_cut-release-branches.yaml index 5f13942..88ccfab 100644 --- a/.github/workflows/_cut-release-branches.yaml +++ b/.github/workflows/_cut-release-branches.yaml @@ -27,12 +27,6 @@ jobs: matrix: repo: ${{ fromJson(needs.get-repos.outputs.repos) }} steps: - - name: Checkout repository - uses: actions/checkout@v4 - with: - repository: ${{ matrix.repo }} - fetch-depth: 0 - - name: Get Token id: get_workflow_token uses: peter-murray/workflow-application-token-action@v3 @@ -40,9 +34,14 @@ jobs: application_id: ${{ vars.KONVEYOR_BOT_ID }} application_private_key: ${{ secrets.KONVEYOR_BOT_KEY }} + - name: Checkout repository + uses: actions/checkout@v4 + with: + repository: ${{ matrix.repo }} + token: ${{ steps.get_workflow_token.outputs.token }} + fetch-depth: 0 + - name: Create new branch - env: - GITHUB_TOKEN: ${{ steps.get_workflow_token.outputs.token }} run: | git config --global user.email "noreply@github.com" git config --global user.name "Branch Creator"