Skip to content

Commit b34757f

Browse files
fixing repo url
1 parent 23366e9 commit b34757f

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

.github/workflows/publish.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,17 @@ jobs:
3131
- name: Publish
3232
run: |
3333
pwd
34+
date=`date +%Y%m%d`
3435
cd softlayer.github.io
3536
git fetch --prune --unshallow
3637
git config --local user.email "sldndeveloperrelations@wwpdl.vnet.ibm.com"
3738
git config --local user.name "SLDN"
38-
git status
39+
git checkout -b ${date}
3940
git add --all
41+
git status
4042
git commit --message="`date` Release"
41-
- name: Push changes
42-
uses: ad-m/github-push-action@master
43-
with:
44-
github_token: ${{ secrets.SLDN_GITHUB }}
45-
branch: AutoUpdates
46-
directory: softlayer.github.io
47-
repository: softlayer/softlayer.github.io
43+
remote_repo="https://${{ secrets.SLDN_USER }}:${{ secrets.SLDN_GITHUB }}@github.com/${REPOSITORY}.git"
44+
git push "${remote_repo}" HEAD:${date}
4845
- name: Create Pull Request
4946
uses: peter-evans/create-pull-request@v2
5047
with:
@@ -55,4 +52,4 @@ jobs:
5552
labels: Release
5653
author: SLDN <sldndeveloperrelations@wwpdl.vnet.ibm.com>
5754
committer: SLDN <sldndeveloperrelations@wwpdl.vnet.ibm.com>
58-
branch: AutoUpdates
55+

0 commit comments

Comments
 (0)