Skip to content

Commit 195c3f0

Browse files
committed
Work around for copilot silently overriding the
fetch settings
1 parent 3fac613 commit 195c3f0

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/copilot-setup-steps.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ jobs:
4242
# we need full history with tags for the version number
4343
fetch-depth: '0'
4444

45+
# work around for https://github.com/orgs/community/discussions/163397
46+
- name: Fetch main branch
47+
run: |
48+
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
49+
git fetch origin main:main
50+
51+
4552
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
4653
with:
4754
python-version: 3.13

0 commit comments

Comments
 (0)