Skip to content

Commit d7e51e1

Browse files
pRizzcursoragent
andcommitted
chore(ci): add opencode commit updater workflow
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 321cb48 commit d7e51e1

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Update Opencode Commit
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: "0 2 * * *"
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
update-opencode-commit:
13+
name: Update Opencode Commit
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
with:
19+
token: ${{ secrets.GITHUB_TOKEN }}
20+
21+
- name: Configure Git
22+
run: |
23+
git config user.name "github-actions[bot]"
24+
git config user.email "github-actions[bot]@users.noreply.github.com"
25+
26+
- name: Update opencode commit
27+
run: |
28+
./scripts/update-opencode-commit.sh
29+
30+
- name: Commit and push if changed
31+
run: |
32+
if git diff --quiet; then
33+
echo "No changes to commit."
34+
exit 0
35+
fi
36+
37+
git add packages/core/src/docker/Dockerfile
38+
git commit -m "chore: update opencode commit"
39+
git push

0 commit comments

Comments
 (0)