File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 :
5552 labels : Release
5653 author : SLDN <sldndeveloperrelations@wwpdl.vnet.ibm.com>
5754 committer : SLDN <sldndeveloperrelations@wwpdl.vnet.ibm.com>
58- branch : AutoUpdates
55+
You can’t perform that action at this time.
0 commit comments