-
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
9933e4b
commit abde263
Showing
2 changed files
with
38 additions
and
2 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 |
---|---|---|
|
@@ -29,3 +29,41 @@ jobs: | |
- name: Run generateProtos Task | ||
run: ./gradlew generateProtos | ||
|
||
export-files: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Generate Protos | ||
run: ./gradlew generateProtos | ||
|
||
- name: Upload generated files | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: generated-kotlin-files | ||
path: build/generated/source/wire/*.kt | ||
|
||
- name: Push to separate repo (replace with your details) | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: 'ksharma/Kotlin-Proto' # Target repo | ||
token: ${{ secrets.TOKEN }} # Use secret for authentication | ||
# env: | ||
# GITHUB_PAT: ${{ secrets.TOKEN }} # Optional environment variable for PAT | ||
|
||
- name: Configure Git | ||
run: | | ||
git config user.name 'Karan Sharma' | ||
git config user.email '[email protected]' | ||
- name: Create a new branch | ||
run: git checkout -b kotlinfiles | ||
- name: Create Commit | ||
run: | | ||
# cd kotlin # Optional if artifacts are in a subdirectory | ||
git add . | ||
git commit -m "Add generated Kotlin files from main project" | ||
|
||
- name: Push changes to target repo | ||
run: git push origin ${{ steps.checkout-target-repo.outputs.branch }} |
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