Skip to content

Commit

Permalink
REmove committing eparately
Browse files Browse the repository at this point in the history
  • Loading branch information
ksharma-xyz committed Jul 5, 2024
1 parent 8ffaaa0 commit 0ae1fb8
Showing 1 changed file with 1 addition and 39 deletions.
40 changes: 1 addition & 39 deletions .github/workflows/gen-kotlin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,50 +45,12 @@ jobs:
name: generated-kotlin-files
path: ./generated

- name: List downloaded files
run: ls -R ./generated

- name: Configure Git
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git config --global init.defaultBranch main
- name: Create a new branch
run: git checkout -b kotlin

- name: Copy generated files to target repo
run: |
mkdir -p kotlin
touch test.txt
cp -r ./generated/* kotlin/
ls -R kotlin/ || echo "Copy failed"
- name: Create Commit
run: |
git add .
git commit -m "Kotlin Files"
- name: Push changes to target repo
run: git push --set-upstream origin kotlin

- name: Verify pushed branch
run: |
git fetch
git checkout kotlin
git log -1
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.TOKEN }}
commit-message: "Add generated Kotlin files from ksharma-xyz/Proto-API"
branch: kotlin
branch-suffix: timestamp
title: "Add generated Kotlin files from main project"
body: "This PR adds the generated Kotlin files from the main project."
base: main
committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
author: ksharma-xyz <[email protected]>
signoff: false
delete-branch: false
draft: false

0 comments on commit 0ae1fb8

Please sign in to comment.