File tree Expand file tree Collapse file tree 1 file changed +54
-0
lines changed
Expand file tree Collapse file tree 1 file changed +54
-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-cloud
28+ - name : Investigate private repository checkout results
29+ run : |
30+ pwd
31+ ls -la bytechef-cloud
32+ cd bytechef-cloud
33+ git branch
34+ - name : Checkout code from current repository
35+ uses : actions/checkout@v4
36+ with :
37+ ref : stable
38+ fetch-depth : 0 # Need full history to remove commits
39+ path : bytechef-public
40+ - name : Remove last commit
41+ run : |
42+ pwd
43+ ls -la bytechef-public
44+ cd bytechef-public
45+ git remote show
46+ git reset --hard HEAD~1
47+ - name : Push to private repository
48+ run : |
49+ pwd
50+ ls -la bytechef-public
51+ cd bytechef-public
52+ git remote show
53+ git push -f origin stable
54+
You can’t perform that action at this time.
0 commit comments