Skip to content

Commit b99c9fe

Browse files
committed
Fixed action to push to upstream publish
1 parent f3e36e3 commit b99c9fe

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/main.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ on:
33
push:
44
branches:
55
- main
6+
- Fix-push-to-publish
67

78
jobs:
89
build:
@@ -45,10 +46,12 @@ jobs:
4546
env:
4647
ROBOT_TOKEN: ${{ secrets.ROBOT_TOKEN }}
4748
run: |
48-
git config --local http.https://github.com/.extraheader "AUTHORIZATION: basic $(printf '%s' "x-access-token:${ROBOT_TOKEN}" | base64 -w0)"
49+
git config --global url."https://percona-platform-robot:${ROBOT_TOKEN}@github.com".insteadOf "https://github.com"
4950
git config user.name "GitHub Action"
5051
git config user.email "github-action@users.noreply.github.com"
51-
52+
git config user.password "${ROBOT_TOKEN}"
53+
echo "GIT_USER=percona-platform-robot:${ROBOT_TOKEN}" >> $GITHUB_ENV
54+
5255
# Deploy docs
5356
- name: Deploy docs
5457
env:

0 commit comments

Comments
 (0)