File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments