Skip to content

Commit

Permalink
Merge pull request #4594 from iguessthislldo/igtd/release-script-3.28.0
Browse files Browse the repository at this point in the history
Post 3.28.0 Release Script Improvements
  • Loading branch information
jrw972 committed Apr 19, 2024
2 parents 1a0528b + 765f2bd commit f7165a7
Show file tree
Hide file tree
Showing 6 changed files with 256 additions and 101 deletions.
37 changes: 23 additions & 14 deletions .github/workflows/update-ace-tao.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,28 +31,37 @@ jobs:
run: |
cd OpenDDS
GITHUB_TOKEN=${{secrets.GITHUB_TOKEN}} perl tools/scripts/gitrelease.pl --update-ace-tao
# Help make the title and message for commit and PR
perl tools/scripts/modules/ini.pm acetao.ini --join ', ' '.*/version' > ../acevers
echo "ACEVERS=$(cat ../acevers)" >> $GITHUB_ENV
perl tools/scripts/modules/ini.pm acetao.ini --join ', ' '.*/url' > ../acevers_urls
echo "ACEVERS_URLS=$(cat ../acevers_urls)" >> $GITHUB_ENV
prefix="$GITHUB_WORKSPACE/update-ace-tao-"
commit_msg="${prefix}commit.md"
# Only commit and make a PR if the release script recognized a change
# from both master and workflows/update-ace-tao if it exists.
if [ -f "${commit_msg}" ]
then
echo "CREATE_PULL_REQUEST=true" >> $GITHUB_ENV
# create-pull-request can commit for us, but manually commit here so
# we can use file input for the commit message.
# https://github.com/peter-evans/create-pull-request/issues/2864
git config user.name GitHub
git config user.email noreply@github.com
git add --all
git commit --file "${commit_msg}" \
--author "${{github.actor}} <${{github.actor}}@users.noreply.github.com>"
echo "PR_TITLE=$(cat ${prefix}pr-title.md)" >> $GITHUB_ENV
echo "PR_BODY_FILE=${prefix}pr-body.md" >> $GITHUB_ENV
else
echo "CREATE_PULL_REQUEST=false" >> $GITHUB_ENV
fi
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
if: env.CREATE_PULL_REQUEST == 'true'
id: cpr
with:
path: OpenDDS
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: |
Update ACE/TAO to ${{env.ACEVERS}}
The releases are ${{env.ACEVERS_URLS}}
committer: GitHub <noreply@github.com>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
signoff: false
branch: workflows/update-ace-tao
delete-branch: true
title: Update ACE/TAO to ${{env.ACEVERS}}
body: "Releases: ${{env.ACEVERS_URLS}}"
title: ${{env.PR_TITLE}}
body-path: ${{env.PR_BODY_FILE}}
labels: |
dependencies
- name: Check outputs
Expand Down
6 changes: 5 additions & 1 deletion acetao.ini
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# This file contains the common info for ACE/TAO releases. Insead of editing
# this directly, run:
# GITHUB_TOKEN=... ./tools/scripts/gitrelease.pl --update-ace-tao
# tools/scripts/gitrelease.pl --update-ace-tao

[ace6tao2]
hold=0
desc=ACE 6/TAO 2
version=6.5.20
repo=https://github.com/DOCGroup/ACE_TAO.git
branch=ace6tao2
Expand All @@ -18,6 +20,8 @@ tar.bz2-url=https://github.com/DOCGroup/ACE_TAO/releases/download/ACE%2BTAO-6_5_
tar.bz2-md5=2551d7d445456bcb316fe5e9a4b514ea

[ace7tao3]
hold=1
desc=ACE 7/TAO 3
version=7.1.3
repo=https://github.com/DOCGroup/ACE_TAO.git
branch=master
Expand Down

0 comments on commit f7165a7

Please sign in to comment.