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