From 87b7636a54525c486c5f80971ce39177a4b57815 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 3 Apr 2026 23:28:32 +0000 Subject: [PATCH 1/2] fix: remove invalid 'administration' permission from release workflow Agent-Logs-Url: https://github.com/petesramek/polyline-algorithm-csharp/sessions/bd9f190c-f5b2-4841-a0e5-3422404fa9a7 Co-authored-by: petesramek <2333452+petesramek@users.noreply.github.com> --- .github/workflows/release.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cde39549..78cdb35b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,7 +13,6 @@ permissions: pages: write id-token: write contents: write - administration: write concurrency: group: release-${{ github.head_ref || github.ref }} From ac1a0fb62cea7feabc726c6cc82b394512a4889b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 3 Apr 2026 23:46:52 +0000 Subject: [PATCH 2/2] fix: create target branch without switching workspace in promote-branch workflow Agent-Logs-Url: https://github.com/petesramek/polyline-algorithm-csharp/sessions/8a7d8752-2079-4fae-a8c8-13b46a0a4629 Co-authored-by: petesramek <2333452+petesramek@users.noreply.github.com> --- .github/workflows/promote-branch.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/promote-branch.yml b/.github/workflows/promote-branch.yml index 645d712c..54296d35 100644 --- a/.github/workflows/promote-branch.yml +++ b/.github/workflows/promote-branch.yml @@ -206,13 +206,12 @@ jobs: dotnet-version: ${{ env.dotnet-sdk-version }} - name: 'Create target branch' if: ${{ needs.workflow-variables.outputs.target-branch-exists == 'false' }} + env: + base-branch: ${{ needs.workflow-variables.outputs.base-branch }} + target-branch: ${{ needs.workflow-variables.outputs.target-branch }} run: | - git config user.name "$(git log -n 1 --pretty=format:%an)" - git config user.email "$(git log -n 1 --pretty=format:%ae)" git fetch origin - git switch ${{ needs.workflow-variables.outputs.base-branch }} - git checkout -b ${{ needs.workflow-variables.outputs.target-branch }} origin/${{ needs.workflow-variables.outputs.target-branch }} || git checkout -b ${{ needs.workflow-variables.outputs.target-branch }} - git push --set-upstream origin ${{ needs.workflow-variables.outputs.target-branch }} + git push origin origin/${{ env.base-branch }}:refs/heads/${{ env.target-branch }} - name: 'Lock target branch' if: ${{ needs.workflow-variables.outputs.target-branch-exists == 'false' }} uses: './.github/actions/github/branch-protection/lock'