Skip to content

autoupdate

autoupdate #36

Workflow file for this run

name: autoupdate
on:
schedule:
- cron: '0 20 14,28 * *'
workflow_dispatch:
jobs:
autoupdate:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v6
with:
token: ${{ secrets.COATL_BOT_GH_TOKEN }}
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: '3.14'
- name: Upgrade uvx requirements
run: |
python -m pip install --dry-run --no-deps --report "$RUNNER_TEMP/uvx.json" --requirement uvx.in
jq -r '.install[].metadata | "\(.name)==\(.version)"' "$RUNNER_TEMP/uvx.json" > uvx.txt
working-directory: requirements
- name: Detect changes
id: git-diff
uses: coatl-dev/actions/simple-git-diff@v5
- name: Import GPG key
if: ${{ steps.git-diff.outputs.diff == 'true' }}
id: gpg-import
uses: coatl-dev/actions/gpg-import@v5
with:
passphrase: ${{ secrets.COATL_BOT_GPG_PASSPHRASE }}
private-key: ${{ secrets.COATL_BOT_GPG_PRIVATE_KEY }}
- name: Commit and push changes
if: ${{ steps.git-diff.outputs.diff == 'true' }}
run: |
git checkout -B autoupdate
git add -u
git commit -m "build(deps): update build dependencies"
git push --force --set-upstream origin autoupdate
- name: Create pull request
if: ${{ steps.git-diff.outputs.diff == 'true' }}
uses: coatl-dev/actions/pr-create@v5
with:
gh-token: ${{ secrets.COATL_BOT_GH_TOKEN }}