File tree 3 files changed +6
-2
lines changed
3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -166,13 +166,15 @@ jobs:
166
166
run : release-scripts/publish_release_commits.sh
167
167
env :
168
168
DRY_RUN : ${{ github.event_name != 'schedule' && github.event.inputs.dry_run == false }}
169
- GH_TOKEN : ${{ secrets.GH_TOKEN }}
169
+ GIT_USERNAME : ${{ secrets.RELEASE_USER }}
170
+ GIT_PASSWORD : ${{ secrets.RELEASE_TOKEN }}
170
171
171
172
- name : Bump versions on master
172
173
run : release-scripts/bump_versions.sh
173
174
env :
174
175
DRY_RUN : ${{ github.event_name != 'schedule' && github.event.inputs.dry_run == false }}
175
- GH_TOKEN : ${{ secrets.GH_TOKEN }}
176
+ GIT_USERNAME : ${{ secrets.RELEASE_USER }}
177
+ GIT_PASSWORD : ${{ secrets.RELEASE_TOKEN }}
176
178
177
179
# PyPI artifacts
178
180
- name : Create artifacts and dist directories
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ for i in $(ls $CHECKOUT_DIR); do
43
43
44
44
# Push
45
45
if [ " $DRY_RUN " == " false" ]; then
46
+ git remote set-url origin $( git remote get-url origin | sed " s#https://#https://$GIT_USERNAME :$GIT_PASSWORD @#" )
46
47
git push
47
48
push_successful=$?
48
49
if [ $push_successful -ne 0 ]; then
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ source "$(dirname "$0")/vars.sh"
5
5
6
6
for i in $( ls $CHECKOUT_DIR ) ; do
7
7
ref_to_push=$( git -C $CHECKOUT_DIR /$i describe --tags | head -n 1)
8
+ git -C $CHECKOUT_DIR /$i remote set-url origin $( git -C $CHECKOUT_DIR /$i remote get-url origin | sed " s#https://#https://$GIT_USERNAME :$GIT_PASSWORD @#" )
8
9
if [ " $DRY_RUN " == " false" ]; then
9
10
git -C $CHECKOUT_DIR /$i push origin " $ref_to_push "
10
11
fi
You can’t perform that action at this time.
0 commit comments