File tree Expand file tree Collapse file tree 1 file changed +57
-0
lines changed
Expand file tree Collapse file tree 1 file changed +57
-0
lines changed Original file line number Diff line number Diff line change 1+ # This workflow uses actions that are not certified by GitHub.
2+ # They are provided by a third-party and are governed by
3+ # separate terms of service, privacy policy, and support
4+ # documentation.
5+ # This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
6+ # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
7+
8+ name : CI Build on Stable Branch and Push to Cloud Repository
9+
10+ on :
11+ push :
12+ branches : [ "stable" ]
13+
14+ permissions :
15+ contents : write
16+
17+ jobs :
18+ pushToCloudRepository :
19+ runs-on : ubuntu-latest
20+
21+ steps :
22+ - name : Checkout external repo
23+ uses : actions/checkout@v4
24+ with :
25+ repository : bytechefhq/bytechef-cloud
26+ token : ${{ secrets.PRIVATE_REPOSITORY_GIT_API_TOKEN }} # PAT with 'repo' scope
27+ path : bytechef-merge
28+ - name : Investigate private repository checkout results
29+ run : |
30+ pwd
31+ ls -la bytechef-merge
32+ cd bytechef-merge
33+ git branch
34+ git remote show
35+ git remote rename origin origin-cloud
36+ echo "Remote renamed"
37+ git remote show
38+ git remote add origin-public [email protected] :bytechefhq/bytechef.git 39+ echo "New Remote Added"
40+ git remote show
41+ - name : Remove last commit
42+ run : |
43+ pwd
44+ cd bytechef-merge
45+ ls -la
46+ git remote show
47+ git reset --hard HEAD~1
48+ git remote show
49+ echo "Done with git preparation"
50+ - name : Push to private repository
51+ run : |
52+ pwd
53+ ls -la
54+ cd bytechef-merge
55+ git remote show
56+ git push -f origin-cloud stable
57+
You can’t perform that action at this time.
0 commit comments