Skip to content

deps(deps): update dependency nginx/nginx to v1.31.5 #30

deps(deps): update dependency nginx/nginx to v1.31.5

deps(deps): update dependency nginx/nginx to v1.31.5 #30

name: Update nginx SHA256 checksums
# Triggered automatically when Renovate opens/updates a PR that touches the nginx installers.
# Downloads the new tarballs, calculates SHA256 hashes, and commits them back to the PR branch.
on:
pull_request:
types: [opened, synchronize, reopened]
branches: [main]
paths:
- 'nginx/nginx_installer.sh'
- 'nginx/nginx_installer.ps1'
permissions:
contents: write
jobs:
update-checksums:
name: Recalculate SHA256 checksums
runs-on: ubuntu-latest
if: startsWith(github.head_ref, 'renovate/') && github.actor == 'renovate[bot]'
steps:
- name: Checkout PR branch
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: Recalculate and apply checksums
run: |
chmod +x .github/scripts/update-nginx-checksums.sh
.github/scripts/update-nginx-checksums.sh --apply
- name: Commit updated checksums
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add nginx/nginx_installer.sh nginx/nginx_installer.ps1
if git diff --staged --quiet; then
echo "Checksums are already up to date, nothing to commit."
else
git commit -m "chore: update nginx dependency SHA256 checksums"
git push
fi