File tree Expand file tree Collapse file tree 1 file changed +58
-0
lines changed
Expand file tree Collapse file tree 1 file changed +58
-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+ git checkout origin stable
42+ - name : Remove last commit
43+ run : |
44+ pwd
45+ cd bytechef-merge
46+ ls -la
47+ git remote show
48+ git reset --hard HEAD~1
49+ git remote show
50+ echo "Done with git preparation"
51+ - name : Push to private repository
52+ run : |
53+ pwd
54+ ls -la
55+ cd bytechef-merge
56+ git remote show
57+ git push -f origin-cloud stable
58+
You can’t perform that action at this time.
0 commit comments