File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 10
10
if [[ ! -z " $SSH_PRIVATE_KEY " ]]; then
11
11
echo " Saving SSH_PRIVATE_KEY"
12
12
13
- mkdir -p /root/.ssh
13
+ mkdir --parents /root/.ssh
14
14
echo " $SSH_PRIVATE_KEY " > /root/.ssh/id_rsa
15
15
chmod 600 /root/.ssh/id_rsa
16
16
17
17
# Github action changes $HOME to /github at runtime
18
18
# therefore we always copy the SSH key to $HOME (aka. ~)
19
- mkdir -p ~ /.ssh
19
+ mkdir --parents ~ /.ssh
20
20
cp /root/.ssh/* ~ /.ssh/ 2> /dev/null || true
21
21
fi
22
22
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ echo "BRANCHES=$BRANCH_MAPPING"
27
27
git remote set-url origin " https://$GITHUB_ACTOR :$GITHUB_TOKEN @github.com/$GITHUB_REPOSITORY "
28
28
git remote add tmp_upstream " $UPSTREAM_REPO "
29
29
git fetch tmp_upstream
30
- git remote -v
31
- git push origin " refs/remotes/tmp_upstream/${BRANCH_MAPPING%%:* } :refs/heads/${BRANCH_MAPPING#*: } " -f
30
+ git remote --verbose
31
+ git push origin " refs/remotes/tmp_upstream/${BRANCH_MAPPING%%:* } :refs/heads/${BRANCH_MAPPING#*: } " --force
32
32
git remote rm tmp_upstream
33
- git remote -v
33
+ git remote --verbose
You can’t perform that action at this time.
0 commit comments