mirror of
https://github.com/vmware-tanzu/pinniped.git
synced 2026-04-15 22:17:32 +00:00
more towards update version/docs after release by creating a PR
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user