@@ -11,25 +11,46 @@ jobs:
1111 runs-on : ubuntu-latest
1212 steps :
1313
14- # checkout paketo github-config as src-repo
15- - name : Checkout paketo github-config repo
14+ - name : Checkout
15+ uses : actions/checkout@v2
16+
17+ - name : Checkout github-config
1618 uses : actions/checkout@v2
1719 with :
1820 repository : paketo-buildpacks/github-config
19- path : config-repo
21+ path : github-config
2022
21- # checkout this repo
22- - name : Checkout
23- uses : actions/checkout@v2
23+ - name : Checkout Branch
24+ uses : paketo-buildpacks/github-config/actions/pull-request/checkout-branch@main
2425 with :
25- path : current-repo
26+ branch : automation/github-config/update
2627
2728 - name : Run the sync action
28- uses : paketo-buildpacks/github-config/actions/sync@main
29- env :
30- GITHUB_TOKEN : ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }}
29+ uses : paketo-buildpacks/github-config/actions/sync@sync-action
30+ with :
31+ workspace : /github/workspace
32+ config : /github/workspace/github-config/implementation
33+
34+ - name : Cleanup
35+ run : rm -rf github-config
36+
37+ - name : Commit
38+ id : commit
39+ uses : paketo-buildpacks/github-config/actions/pull-request/create-commit@main
40+ with :
41+ message : " Updating github-config"
42+ pathspec : " ."
43+
44+ - name : Push Branch
45+ if : ${{ steps.commit.outputs.commit_sha != '' }}
46+ uses : paketo-buildpacks/github-config/actions/pull-request/push-branch@main
47+ with :
48+ branch : automation/github-config/update
49+
50+ - name : Open Pull Request
51+ if : ${{ steps.commit.outputs.commit_sha != '' }}
52+ uses : paketo-buildpacks/github-config/actions/pull-request/open@main
3153 with :
32- config-repo : config-repo
33- current-repo : current-repo
34- config-path : " /implementation"
35- ssh-private-key : ${{ secrets.PAKETO_BOT_SSH_KEY }}
54+ token : ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }}
55+ title : " Updates github-config"
56+ branch : automation/github-config/update
0 commit comments