Skip to content

Update Opencode Commit #19

Update Opencode Commit

Update Opencode Commit #19

name: Update Opencode Commit
on:
workflow_dispatch:
schedule:
- cron: "0 1-23/2 * * *"
permissions:
contents: write
jobs:
update-opencode-commit:
name: Update Opencode Commit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Configure Git
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: Update opencode commit
run: |
./scripts/update-opencode-commit.sh
- name: Verify OCI description label
run: python3 scripts/extract-oci-description.py packages/core/src/docker/Dockerfile
- name: Commit and push if changed
run: |
if git diff --quiet; then
echo "No changes to commit."
exit 0
fi
git add packages/core/src/docker/Dockerfile
git commit -m "chore: update opencode commit"
git push