File tree Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Sync changes to GitLab
2+
3+ on :
4+ push :
5+ branches : [main]
6+
7+ permissions :
8+ contents : read
9+
10+ jobs :
11+ build :
12+ if : (github.repository == 'adamlui/perplexity-omnibox')
13+ runs-on : ubuntu-latest
14+ env :
15+ TZ : PST8PDT
16+
17+ steps :
18+
19+ - name : Checkout adamlui/perplexity-omnibox
20+ uses : actions/checkout@v5
21+ with :
22+ fetch-depth : 0
23+
24+ - name : Push changes to gitlab.com/adamlui/perplexity-omnibox
25+ run : |
26+ git push --force -o ci.skip \
27+ https://oauth2:${{ secrets.GITLAB_SYNC_PAT }}@gitlab.com/adamlui/perplexity-omnibox.git main
Original file line number Diff line number Diff line change 1+ sync_changes_to_github :
2+ rules :
3+ - if : $CI_COMMIT_BRANCH == "main" && $CI_PROJECT_PATH == "adamlui/perplexity-omnibox"
4+ image : alpine:latest
5+ script :
6+ - apk add --no-cache git
7+ - git clone https://gitlab.com/adamlui/perplexity-omnibox.git
8+ - git push --force -o ci.skip https://${GITHUB_SYNC_PAT}@github.com/adamlui/perplexity-omnibox.git HEAD:main
You can’t perform that action at this time.
0 commit comments