Skip to content

open-pr: use more pleasant commit/PR titles when handling the msys2-runtime package #110

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/open-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,12 @@ jobs:
update_script="$GITHUB_WORKSPACE/update-scripts/version/$PACKAGE_TO_UPGRADE"
if test -f "$update_script"
then
$update_script "$UPGRADE_TO_VERSION"
$update_script "$UPGRADE_TO_VERSION" &&
if test -f UPGRADE_TO_VERSION
then
UPGRADE_TO_VERSION="$(cat UPGRADE_TO_VERSION)" &&
rm UPGRADE_TO_VERSION
fi
else
sed -i \
-e "s/^\\(pkgver=\\).*/\\1$UPGRADE_TO_VERSION/" \
Expand Down
2 changes: 1 addition & 1 deletion update-scripts/version/bash
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

let [ , basever, patchlevel ] = version.match(/^(\d+\.\d+)\.(\d+)/)
let match

const fs = require('fs')
const lines = fs.readFileSync('PKGBUILD').toString('utf-8').split(/\r?\n/)
lines.forEach((line, i) => {
Expand Down
4 changes: 3 additions & 1 deletion update-scripts/version/msys2-runtime
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,6 @@ if test -n "$update_pkgver"
then
git reset --soft HEAD^ &&
sed -i 's/^pkgrel=.*/pkgrel=1/' PKGBUILD
fi
fi &&
sed -n '/^pkgver=/{:1;N;/pkgrel=/{s/.*pkgver=\([0-9\.]*\).*pkgrel=\([0-9]*\).*/\1-\2/p;q};b1}' \
<PKGBUILD >UPGRADE_TO_VERSION