forked from cline/cline
-
Notifications
You must be signed in to change notification settings - Fork 0
76 lines (60 loc) · 1.78 KB
/
pull-upstream-and-merge.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: Pull Upstream and Merge
on:
schedule:
- cron: '0 0 * * *' # Runs daily at midnight
workflow_dispatch:
jobs:
pull-and-merge:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Git
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
- name: Pull upstream changes
run: |
git remote add upstream https://github.com/jakenuts/claude-dev.git
git fetch upstream
git checkout main
git merge upstream/main
- name: Merge updates from main
run: |
git checkout -b update-branch
git merge main
- name: Build validation
run: npm run compile
- name: Commit changes
run: |
git checkout main
git merge update-branch
git push origin main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Notify maintainers on failure
if: failure()
run: echo "Merge conflict or failure occurred. Please resolve manually."
build-and-release:
needs: pull-and-merge
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '14'
- name: Install dependencies
run: npm install
- name: Build project
run: npm run compile
- name: Package project
run: npm run package
- name: Create release
uses: softprops/action-gh-release@v1
with:
files: |
*.vsix
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}