File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed
Expand file tree Collapse file tree 1 file changed +41
-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 : Checkout code from current repository
29+ uses : actions/checkout@v4
30+ with :
31+ ref : stable
32+ fetch-depth : 0 # Need full history to remove commits
33+ - name : Remove last commit
34+ run : |
35+ git reset --hard HEAD~1
36+ - name : Push to private repository
37+ run : |
38+ echo ">DOING DIRECTLY..."
39+ echo ">DOING DIRECTLY..."
40+ git push -f origin-cloud stable
41+
You can’t perform that action at this time.
0 commit comments