more towards update version/docs after release by creating a PR

This commit is contained in:
Ryan Richard
2025-08-04 14:15:38 -07:00
parent 3ea7403b6f
commit c1fcb8a0fc
2 changed files with 18 additions and 4 deletions

View File

@@ -342,6 +342,16 @@ resources:
username: ((ci-bot-username))
password: ((ci-bot-access-token-with-public-repo-write-permission))
- name: gh-cli-image
type: registry-image
icon: docker
check_every: 10m
source:
repository: ((ci-ghcr-registry))/gh-cli
username: ((ci-ghcr-puller-username))
password: ((ci-ghcr-puller-token))
tag: latest
- name: ci-build-image
type: registry-image
icon: docker
@@ -2711,6 +2721,7 @@ jobs:
globs: [ pinniped-cli-linux-amd64 ]
- get: pinniped-ci
- get: pinniped
- get: gh-cli-image
- task: update-version-and-cli-docs
timeout: 30m
file: pinniped-ci/pipelines/shared-tasks/update-version-and-cli-docs/task.yml

View File

@@ -47,6 +47,13 @@ git add "$configdoc"
# Print the current status to the log.
git status
# Restore the unstaged changes, if any.
echo "Restoring any unstaged changes."
git restore .
# Print the current status to the log.
git status
# Did we just stage any changes?
staged=$(git --no-pager diff --staged)
if [[ "$staged" == "" ]]; then
@@ -57,8 +64,4 @@ else
echo "Found changes for $clidoc or $configdoc:"
echo
echo "$staged"
echo
# Commit.
echo "Committing changes."
git commit -m "Updated versions in docs for $pinniped_tag release"
fi