-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8ffaaa0
commit 0ae1fb8
Showing
1 changed file
with
1 addition
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |