Skip to content
32 changes: 29 additions & 3 deletions .github/workflows/ci_tools.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: CI Tools
on:
issue_comment:
types:
- created
- edited
schedule:
- cron: 0 6 * * *
push:
Expand All @@ -9,9 +13,6 @@ on:
- .trunk/trunk.yaml
workflow_dispatch:
permissions: read-all
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
jobs:
trunk_upgrade:
name: Upgrade Trunk
Expand Down Expand Up @@ -39,3 +40,28 @@ jobs:
uses: trunk-io/trunk-action@75699af9e26881e564e9d832ef7dc3af25ec031b # v1
with:
check-mode: populate_cache_only
opencode:
if: |
github.event_name == 'issue_comment' &&
(
contains(github.event.comment.body, ' /oc') ||
startsWith(github.event.comment.body, '/oc') ||
contains(github.event.comment.body, ' /opencode') ||
startsWith(github.event.comment.body, '/opencode')
)
name: Opencode
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
pull-requests: read
issues: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run opencode
uses: sst/opencode/github@latest
env:
OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}
with:
model: opencode/grok-code
4 changes: 0 additions & 4 deletions .trunk/trunk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,10 @@ lint:
actions:
enabled:
- commitizen
#- commitlint
- trufflehog-pre-commit
#- uv-check
- uv-lock
- uv-sync
- trunk-announce
# - trunk-check-pre-push
- trunk-fmt-pre-commit
- trunk-upgrade-available
# - trunk-check-pre-push-always
- trunk-check-pre-commit
Loading