@@ -42,14 +42,14 @@ jobs:
4242 with :
4343 fetch-depth : 0
4444
45- - name : Setup Git to use GitHub Actions bot
46- run : |
47- git config user.name "github-actions[bot]"
48- git config user.email "github-actions[bot]@users.noreply.github.com"
45+ # - name: Setup Git to use GitHub Actions bot
46+ # run: |
47+ # git config user.name "github-actions[bot]"
48+ # git config user.email "github-actions[bot]@users.noreply.github.com"
4949
50- - name : Create a new branch
51- run : |
52- git checkout -b ${{ github.event.pull_request.head.ref }}-docs
50+ # - name: Create a new branch
51+ # run: |
52+ # git checkout -b ${{ github.event.pull_request.head.ref }}-docs
5353
5454 - name : Generate go docs
5555 shell : bash
@@ -85,34 +85,35 @@ jobs:
8585 aws-lambda-url : ${{ secrets.GATI_LAMBDA_TT_URL }}
8686 aws-region : ${{ secrets.AWS_REGION }}
8787
88- - name : Checkout new branch
89- uses : peterjgrainger/action-create-branch@10c7d268152480ae859347db45dc69086cef1d9c # v3.0.0
90- env :
91- GITHUB_TOKEN : ${{ steps.setup-github-token-write.outputs.access-token }}
92- with :
93- branch : ${{ steps.branch-names.outputs.new_branch }}
94-
95- - name : Commit changes
96- uses : planetscale/ghcommit-action@13a844326508cdefc72235201bb0446d6d10a85f # v0.1.6
97- with :
98- commit_message : " [Bot] Add automatically generated go documentation"
99- repo : ${{ github.repository }}
100- branch : ${{ steps.branch-names.outputs.new_branch }}
101- # TODO we need a way to determine which modules have changes and run this command for all of them
102- file_pattern : " seth/*"
103- env :
104- GITHUB_TOKEN : ${{ steps.setup-github-token-write.outputs.access-token }}
105-
106- - name : Fetch repository changes
107- uses : actions/checkout@v3
108- with :
109- fetch-depth : 0
88+ # - name: Checkout new branch
89+ # uses: peterjgrainger/action-create-branch@10c7d268152480ae859347db45dc69086cef1d9c # v3.0.0
90+ # env:
91+ # GITHUB_TOKEN: ${{ steps.setup-github-token-write.outputs.access-token }}
92+ # with:
93+ # branch: ${{ steps.branch-names.outputs.new_branch }}
94+
95+ # - name: Commit changes
96+ # uses: planetscale/ghcommit-action@13a844326508cdefc72235201bb0446d6d10a85f # v0.1.6
97+ # with:
98+ # commit_message: "[Bot] Add automatically generated go documentation"
99+ # repo: ${{ github.repository }}
100+ # branch: ${{ steps.branch-names.outputs.new_branch }}
101+ # # TODO we need a way to determine which modules have changes and run this command for all of them
102+ # file_pattern: "seth/*"
103+ # env:
104+ # GITHUB_TOKEN: ${{ steps.setup-github-token-write.outputs.access-token }}
105+
106+ # - name: Fetch repository changes
107+ # uses: actions/checkout@v3
108+ # with:
109+ # fetch-depth: 0
110110
111111 - name : Create a new PR targeting current PR
112112 uses : peter-evans/create-pull-request@v7
113113 with :
114114 token : ${{ steps.setup-github-token-write.outputs.access-token }}
115- base : ${{ steps.branch-names.outputs.base_branch }}
116115 branch : ${{ steps.branch-names.outputs.new_branch }}
116+ base : ${{ steps.branch-names.outputs.base_branch }}
117117 title : " Go docs for PR#${{ github.event.pull_request.number }}"
118118 body : " This PR contains automatically generated go documentation for the PR#${{ github.event.pull_request.number }}. Please review the changes."
119+ commit-message : " [Bot] Add automatically generated go documentation"
0 commit comments