Skip to content

Commit 5697dee

Browse files
authored
Merge pull request #521 from mtzguido/nighty
CI: fix upload phase of nightly build
2 parents 82f712b + 2b1149e commit 5697dee

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/nightly.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,15 @@ jobs:
8282
# ^ Download all artifacts into the same dir.
8383
# Each of them is a single file, so no clashes happen.
8484

85-
- name: Publish artifacts in nightly tag
86-
run: |
87-
git config --unset-all http.https://github.com/.extraheader
85+
- run: |
86+
# git config --unset-all http.https://github.com/.extraheader
8887
# ^ https://stackoverflow.com/questions/64374179/how-to-push-to-another-repository-in-github-actions
88+
# The above does not work anymore, GitHub switched to using includeif
89+
# directives in the config. Remove them.
90+
for key in $(git config -l | grep ^includeif | cut -d= -f1); do git config unset --all $key; done
8991
92+
- name: Publish artifacts in nightly tag
93+
run: |
9094
# We push nightly builds to a different repo (same org)
9195
REPO="${{github.repository}}-nightly"
9296
TAG=nightly-$(date -I)

0 commit comments

Comments
 (0)