Skip to content

Commit

Permalink
add changelog to PR body output
Browse files Browse the repository at this point in the history
  • Loading branch information
spowelljr committed Oct 26, 2023
1 parent 060775f commit 5f871ef
Showing 1 changed file with 41 additions and 1 deletion.
42 changes: 41 additions & 1 deletion .github/workflows/update-iso-image-versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,52 @@ jobs:
- name: Bump versions
id: bumpVersions
run: |
OLD_BUILDKIT=$(DEP=buildkit make get-dependency-version)
OLD_CNI_PLUGINS=$(DEP=cni-plugins make get-dependency-version)
OLD_CONTAINERD=$(DEP=containerd make get-dependency-version)
OLD_CRICTL=$(DEP=crictl make get-dependency-version)
OLD_DOCKER=$(DEP=docker make get-dependency-version)
OLD_NERDCTL=$(DEP=nerdctl make get-dependency-version)
OLD_RUNC=$(DEP=runc make get-dependency-version)
OLD_UBUNTU=$(DEP=ubuntu make get-dependency-version)
make update-buildkit-version
make update-cni-plugins-version
make update-containerd-version
make update-crictl-version
make update-docker-buildx-version
make update-docker-version
make update-nerdctl-version
make update-runc-version
make update-ubuntu-version
NEW_BUILDKIT=$(DEP=buildkit make get-dependency-version)
NEW_CNI_PLUGINS=$(DEP=cni-plugins make get-dependency-version)
NEW_CONTAINERD=$(DEP=containerd make get-dependency-version)
NEW_CRICTL=$(DEP=crictl make get-dependency-version)
NEW_DOCKER_BUILDX=$(DEP=docker-buildx make get-dependency-version)
NEW_DOCKER=$(DEP=docker make get-dependency-version)
NEW_NERDCTL=$(DEP=nerdctl make get-dependency-version)
NEW_RUNC=$(DEP=runc make get-dependency-version)
NEW_UBUNTU=$(DEP=ubuntu make get-dependency-version)
if [ "$OLD_BUILDKIT" != "$NEW_BUILDKIT" ]; then
echo "changelog=https://github.com/moby/buildkit/releases/tag/$NEW_BUILDKIT" >> $GITHUB_OUTPUT
fi
if [ "$OLD_CNI_PLUGINS" != "$NEW_CNI_PLUGINS" ]; then
echo "changelog=https://github.com/containernetworking/plugins/releases/tag/$NEW_CNI_PLUGINS" >> $GITHUB_OUTPUT
fi
if [ "$OLD_CONTAINERD" != "$NEW_CONTAINERD" ]; then
echo "changelog=https://github.com/containerd/containerd/releases/tag/$NEW_CONTAINERD" >> $GITHUB_OUTPUT
fi
if [ "$OLD_CRICTL" != "$NEW_CRICTL" ]; then
echo "changelog=https://github.com/kubernetes-sigs/cri-tools/releases/tag/$NEW_CRICTL" >> $GITHUB_OUTPUT
fi
if [ "$OLD_DOCKER" != "$NEW_DOCKER" ]; then
echo "changelog=https://github.com/moby/moby/releases/tag/v$NEW_DOCKER" >> $GITHUB_OUTPUT
fi
if [ "$OLD_NERDCTL" != "$NEW_NERDCTL" ]; then
echo "changelog=https://github.com/containerd/nerdctl/releases/tag/v$NEW_NERDCTL" >> $GITHUB_OUTPUT
fi
if [ "$OLD_RUNC" != "$NEW_RUNC" ]; then
echo "changelog=https://github.com/opencontainers/runc/releases/tag/$NEW_RUNC" >> $GITHUB_OUTPUT
fi
# The following is to support multiline with GITHUB_OUTPUT, see https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#multiline-strings
echo "changes<<EOF" >> $GITHUB_OUTPUT
echo "$(git status --porcelain)" >> $GITHUB_OUTPUT
Expand All @@ -46,6 +83,9 @@ jobs:
base: master
delete-branch: true
title: 'Kicbase/ISO: Update dependency versions'
body: |
Changelog:
${{ steps.bumpVersions.outputs.changelog }}
- uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410
if: ${{ steps.bumpVersions.outputs.changes != '' }}
with:
Expand Down

0 comments on commit 5f871ef

Please sign in to comment.