Update Alpine packages #106
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Update Alpine packages | |
| on: | |
| schedule: | |
| - cron: "0 8,12,16 * * *" | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| update: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Update Alpine package pins | |
| env: | |
| ALPINE_UPDATE_REPORT_FILE: ${{ runner.temp }}/alpine-package-updates.md | |
| run: ./.github/scripts/update-alpine-package-versions.sh | |
| - name: Prepare pull request body | |
| id: pr-body | |
| env: | |
| ALPINE_UPDATE_REPORT_FILE: ${{ runner.temp }}/alpine-package-updates.md | |
| run: | | |
| { | |
| echo 'body<<EOF' | |
| echo 'Updates pinned Alpine package versions from the official Alpine package indexes.' | |
| echo | |
| echo 'Version changes:' | |
| echo | |
| if [ -f "${ALPINE_UPDATE_REPORT_FILE}" ]; then | |
| cat "${ALPINE_UPDATE_REPORT_FILE}" | |
| else | |
| echo '_No Alpine package version changes were detected in this run._' | |
| fi | |
| echo | |
| echo 'This PR is generated by the scheduled Alpine package updater workflow.' | |
| echo 'EOF' | |
| } >> "${GITHUB_OUTPUT}" | |
| - name: Create pull request | |
| uses: peter-evans/create-pull-request@v8 | |
| with: | |
| branch: codex/update-alpine-packages | |
| delete-branch: true | |
| commit-message: "chore: update Alpine package versions" | |
| title: "chore: update Alpine package versions" | |
| body: ${{ steps.pr-body.outputs.body }} | |
| labels: | | |
| dependency | |
| bump:patch |