Repository navigation
ci: Bump actions/checkout from 4 to 7 - #2
Closed
dependabot[bot] wants to merge 4 commits into
Closed
dependabot[bot] wants to merge 4 commits into
dependabot[bot] wants to merge 4 commits into
Conversation
Release-directory deployment with atomic symlink swaps for servers where Kubernetes is overkill — a VPS or cPanel box deployed from GitHub Actions. - deploy.sh: atomic rename(2)-based symlink swap, shared-state linking, health-checked with automatic rollback to the previous release - Portable atomic_symlink() since 'mv -T' is GNU-only; production Linux targets take the atomic path, BSD falls back for local testing - preflight.sh: disk, inodes, real write probes, dangling-symlink and TLS-expiry checks that catch mid-deploy failures beforehand - Reusable GitHub Actions workflow with deploy concurrency gating - Multi-stage PHP-FPM Dockerfile with build tooling kept out of runtime - CI integration-tests the deploy, the rollback, and the pruning path
The prune step used (( pruned++ )), which evaluates to 0 on the first increment. Under set -e that is a non-zero status and aborted the script *after* the release had gone live and the ERR trap had been disarmed — so a completely successful deploy exited 1. CI caught it in the pruning integration test. The trailing [[ $pruned -gt 0 ]] && log had the same problem when nothing needed pruning. Also addressed the shellcheck findings that gated CI: - SC2155: split the readonly STAMP declaration from its assignment so a failing date(1) is not masked by the declaration's exit status. - SC2015: the rollback reload used A && B || true, which swallowed a genuinely failing reload command. Replaced with an explicit if that reports the failure instead of hiding it. - SC2012: replaced ls with find for the release listing. find -printf is GNU-only, so the basename is stripped with sed to match the portability already required by atomic_symlink. Co-authored-by: RootX22 <henrry.220267@gmail.com>
rollback.sh is for when the health check passed and it broke later. walks back from whatever is live rather than grabbing second-newest, otherwise rolling back twice in a row goes to the wrong place. nginx example documents the two things that always bite: symlink resolution and $realpath_root for opcache.
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 7. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v4...v7) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
Author
LabelsThe following labels could not be found: Please fix the above issues or remove invalid values from |
Author
|
OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting If you change your mind, just re-open this PR and I'll resolve any conflicts on it. |
dependabot
Bot
deleted the
dependabot/github_actions/actions/checkout-7
branch
August 23, 2026 22:06
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps actions/checkout from 4 to 7.
Release notes
Sourced from actions/checkout's releases.
... (truncated)
Changelog
Sourced from actions/checkout's changelog.
... (truncated)
Commits
3d3c42eprep v7.0.1 release (#2531)2880268escape values passed to --unset (#2530)12cd223trim only ascii whitespace for branch (#2521)62661c4skip running unsafe pr check if input is default (#2518)e8d4307Bump the minor-actions-dependencies group with 2 updates (#2499)631c942eslint 9 (#2474)4f1f4aeBump actions/upload-artifact from 4 to 7 (#2476)ba09753Bump actions/checkout from 6 to 7 (#2488)b9e0990Bump docker/login-action from 3.3.0 to 4.2.0 (#2479)e8cb398Bump docker/build-push-action from 6.5.0 to 7.2.0 (#2478)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)