forked from actualbudget/actual
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'FiWell/master' into enchance/just-portu…
…guese
- Loading branch information
Showing
121 changed files
with
390 additions
and
607 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
version="${1#v}" | ||
|
||
files_to_bump=( | ||
packages/api/package.json | ||
packages/desktop-client/package.json | ||
packages/desktop-electron/package.json | ||
) | ||
|
||
for file in "${files_to_bump[@]}"; do | ||
if [ -z "$version" ]; then | ||
# version format: YY.MM.patch | ||
# logic: if before the 25th, bump patch, else set minor/major to next month | ||
version="$(jq -r .version "$file" | perl -e '($y,$m,$p)=split/\./,<>;$d=(localtime)[3];$d>25?($p=0,++$m,$m>12&&($m=1,++$y)):$p++;print"$y.$m.$p\n"')" | ||
if [ -z "$version" ]; then | ||
echo "Error: Failed to calculate new version" >&2 | ||
exit 1 | ||
fi | ||
fi | ||
|
||
echo "Bumping $file to version $version" | ||
jq '.version = "'"$version"'"' "$file" > "$file.tmp" | ||
mv "$file.tmp" "$file" | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Generate release PR | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
ref: | ||
description: 'Commit or branch to release' | ||
required: true | ||
default: 'master' | ||
version: | ||
description: 'Version number for the release (optional)' | ||
required: false | ||
default: '' | ||
|
||
jobs: | ||
generate-release-pr: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.inputs.ref }} | ||
- name: Bump package versions | ||
id: bump_package_versions | ||
shell: bash | ||
run: | | ||
.github/actions/bump-package-versions ${{ github.event.inputs.version }} | ||
echo "version=$(jq -r .version packages/desktop-client/package.json)" > $GITHUB_OUTPUT | ||
- name: Create PR | ||
uses: peter-evans/create-pull-request@v7 | ||
with: | ||
commit-message: '🔖 (${{ steps.bump_package_versions.outputs.version }})' | ||
title: '🔖 (${{ steps.bump_package_versions.outputs.version }})' | ||
body: 'Generated by [generate-release-pr.yml](../tree/master/.github/workflows/generate-release-pr.yml)' | ||
branch: 'release/v${{ steps.bump_package_versions.outputs.version }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@actual-app/web", | ||
"version": "25.1.0", | ||
"version": "25.2.1", | ||
"license": "MIT", | ||
"files": [ | ||
"build" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.