Skip to content

Update dependencies #1124

Update dependencies

Update dependencies #1124

Workflow file for this run

name: Update dependencies
on:
schedule:
- cron: '0 10 * * *'
workflow_dispatch:
jobs:
updates:
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- uses: jirutka/setup-alpine@v1
with:
branch: latest-stable
packages: >
python3
jq
- name: Checkout
uses: actions/checkout@v4
- name: Update dependencies
run: |
JSON=$( cat dependencies.json )
for PACKAGE in $( echo $JSON | jq -r 'keys | .[]' ); do
VERSION=$( apk list "$PACKAGE" | awk '{ print $1 }' | sed -e "s/^${PACKAGE}-//" )
JSON=$( echo $JSON | jq '.[$package] = $version' --arg package $PACKAGE --arg version $VERSION )
done
echo $JSON | python -m json.tool > dependencies.json
shell: alpine.sh --root {0}
- name: Create PR
uses: peter-evans/create-pull-request@v7
with:
commit-message: "chore(deps): update dependencies.json"
branch: features/update-dependencies
title: Update APK packages
body: Updated dependencies.json
delete-branch: true
labels: dependencies
signoff: true