Skip to content
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

jamie 4.0.3 #168433

Merged
merged 1 commit into from
Mar 6, 2024
Merged

jamie 4.0.3 #168433

merged 1 commit into from
Mar 6, 2024

Conversation

krehel
Copy link
Member

@krehel krehel commented Mar 6, 2024

Created with brew bump-cask-pr.

@BrewTestBot BrewTestBot added the bump-cask-pr PR was created using `brew bump-cask-pr` label Mar 6, 2024
@BrewTestBot BrewTestBot enabled auto-merge March 6, 2024 22:51
@antonengelhardt
Copy link
Contributor

@krehel Hi, do you have some automation for bumping casks or do you do it manually? I'm trying to build one too for that cask.

@bevanjkay
Copy link
Member

bevanjkay commented Mar 6, 2024

@antonengelhardt The cask can be added to our autobump list, then it will be checked for updates every couple of hours.

@antonengelhardt
Copy link
Contributor

@bevanjkay Ok, thanks. And then I probably have to set up the autobump.yaml workflow too?

@bevanjkay
Copy link
Member

@antonengelhardt There's an action that @BrewTestBot runs that handles the opening of the PR and bumping.

@krehel
Copy link
Member Author

krehel commented Mar 6, 2024

Not sure how often this gets bumped. I try to "re-balance" the autobump.yml file every few weeks or monthly to cycle in some frequently updated software.

You're always free to set up something on your side to open a PR on an update for this. Please don't do any mass automation though! 😄

Raycast do something similar - you can see #167314 as an example.

Edit: a few of us maintainers try to run bump cycles of Casks not in the autobump.yml file maybe 1-2x a day, if you're patient for updates and don't need it immediately.

@antonengelhardt
Copy link
Contributor

antonengelhardt commented Mar 6, 2024

@krehel Just started with this: https://github.com/antonengelhardt/jamie-release/blob/main/.github/workflows/brew.yaml

Only problem is with git i believe... (as you can see in the second latest workflow run)

@BrewTestBot BrewTestBot merged commit 17324d2 into Homebrew:master Mar 6, 2024
11 checks passed
@antonengelhardt
Copy link
Contributor

Ok, im using Raycast and just simplified my approach with a Script Command that runs every hour:

#!/bin/bash

# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Bump jamie
# @raycast.mode inline
# @raycast.refreshTime 1h

# Optional parameters:
# @raycast.icon 🚀
# @raycast.packageName homebrew

# Documentation:
# @raycast.description Bump Jamie to a new version
# @raycast.author Anton Engelhardt
# @raycast.authorURL github.com/antonengelhardt

# echo "Switching directory to jamie-release"
cd ~/Documents/repos/jamie-release
git fetch >> /dev/null 2>&1
git pull >> /dev/null 2>&1

# echo "Getting latest tag"
latest_tag=$(gh release list --exclude-pre-releases --exclude-drafts --limit 1 --json tagName | jq .[0].tagName | grep -oE '[0-9]\.[0-9]\.[0-9]')
# echo "Latest tag is $latest_tag"

rm /tmp/bump-jamie-output.txt
# echo "Bumping Jamie to $latest_tag"
# bump the cask and print the output to a variable
brew bump-cask-pr jamie --version=$latest_tag --no-browse >> /tmp/bump-jamie-output.txt 2>&1

# if exit code is 0, then return the link to the PR
if [ $? -eq 0 ]; then
    echo "Bump successful"
    pr_link=$(cat /tmp/bump-jamie-output.txt | grep -oE 'https://github.com/Homebrew/homebrew-cask/pull/[0-9]+')
    echo "Success: $pr_link"
    # if output contains the word duplicate, another PR is already open
elif grep -q "duplicate" /tmp/bump-jamie-output.txt; then
    # pr_link=$(cat /tmp/bump-jamie-output.txt | grep -oE 'https://github.com/Homebrew/homebrew-cask/pull/[0-9]+')
    echo "Duplicate PR"
else
    echo "Bump unsuccessful"
fi

Thanks for your answers!

@krehel krehel deleted the bump-jamie-4.0.3 branch March 10, 2024 00:11
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bump-cask-pr PR was created using `brew bump-cask-pr` outdated
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants