From 104bb15c003f6cf4f3fce891114a9874a5dce617 Mon Sep 17 00:00:00 2001 From: Manjunath Kumatagi Date: Thu, 14 Nov 2024 11:49:28 +0530 Subject: [PATCH 1/6] Update README.md --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5e61775..51cbfea 100644 --- a/README.md +++ b/README.md @@ -1 +1,4 @@ -# test-gha \ No newline at end of file +# test-gha + + +sample text From 20fb6c9fa6fa247b0f57c3d7ea48dee9c918cc3d Mon Sep 17 00:00:00 2001 From: Manjunath Kumatagi Date: Thu, 14 Nov 2024 11:56:55 +0530 Subject: [PATCH 2/6] Update blank.yml --- .github/workflows/blank.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 1258661..c6a549e 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -20,6 +20,9 @@ jobs: git config --global user.email '${{ steps.get-user-id.outputs.user-id }}+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com>' # git commands like commit work using the bot user - run: | + git clone https://github.com/ppc64le-cloud/test-brew.git + cd test-brew + touch "file_$(date +%Y-%m-%d).txt" git add . - git commit -m "Auto-generated changes" + git commit -m "Auto-generated file" git push From e6f4b0c11aa7c68e6692198fc9042ef202827623 Mon Sep 17 00:00:00 2001 From: Manjunath Kumatagi Date: Thu, 14 Nov 2024 12:00:53 +0530 Subject: [PATCH 3/6] Update blank.yml --- .github/workflows/blank.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index c6a549e..a64fcf7 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -10,6 +10,7 @@ jobs: # required app-id: ${{ vars.APP_ID }} private-key: ${{ secrets.PRIVATE_KEY }} + owner: ${{ github.repository_owner }} - name: Get GitHub App User ID id: get-user-id run: echo "user-id=$(gh api "/users/${{ steps.app-token.outputs.app-slug }}[bot]" --jq .id)" >> "$GITHUB_OUTPUT" From ed2d7b224bdabde07f0c06b6865e5ca149927451 Mon Sep 17 00:00:00 2001 From: Manjunath Kumatagi Date: Thu, 14 Nov 2024 12:28:45 +0530 Subject: [PATCH 4/6] Update blank.yml --- .github/workflows/blank.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index a64fcf7..2fb546d 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -20,8 +20,12 @@ jobs: git config --global user.name '${{ steps.app-token.outputs.app-slug }}[bot]' git config --global user.email '${{ steps.get-user-id.outputs.user-id }}+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com>' # git commands like commit work using the bot user + - name: Checkout tools repo + uses: actions/checkout@v4 + with: + repository: ppc64le-cloud/test-brew + path: test-brew - run: | - git clone https://github.com/ppc64le-cloud/test-brew.git cd test-brew touch "file_$(date +%Y-%m-%d).txt" git add . From c76f4dbc7c0e71c635a0db5d8301c405ef84f0af Mon Sep 17 00:00:00 2001 From: Manjunath Kumatagi Date: Thu, 14 Nov 2024 12:38:13 +0530 Subject: [PATCH 5/6] Update blank.yml --- .github/workflows/blank.yml | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 2fb546d..17300e2 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -24,10 +24,21 @@ jobs: uses: actions/checkout@v4 with: repository: ppc64le-cloud/test-brew - path: test-brew + # path: test-brew - run: | - cd test-brew touch "file_$(date +%Y-%m-%d).txt" - git add . - git commit -m "Auto-generated file" - git push + - name: Create Pull Request + uses: peter-evans/create-pull-request@v6 + with: + token: ${{ steps.app-token.outputs.token }} + commit-message: "hello" + title: "Update sample" + body: "sample body" + branch: update-lockfile-pr + base: ${{ github.head_ref }} + # - run: | + # cd test-brew + # touch "file_$(date +%Y-%m-%d).txt" + # git add . + # git commit -m "Auto-generated file" + # git push From deee089439d5c6e2a11738367f5efabd6bc83a93 Mon Sep 17 00:00:00 2001 From: Manjunath Kumatagi Date: Thu, 14 Nov 2024 12:40:48 +0530 Subject: [PATCH 6/6] Update blank.yml --- .github/workflows/blank.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 17300e2..0b5fe2a 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -35,7 +35,7 @@ jobs: title: "Update sample" body: "sample body" branch: update-lockfile-pr - base: ${{ github.head_ref }} + # base: ${{ github.head_ref }} # - run: | # cd test-brew # touch "file_$(date +%Y-%m-%d).txt"