mirror of
https://github.com/bitwarden/browser
synced 2025-01-10 17:35:47 +01:00
script update
This commit is contained in:
parent
1a0fc336ef
commit
4759bd300e
@ -5,9 +5,19 @@
|
|||||||
|
|
||||||
# Dependencies:
|
# Dependencies:
|
||||||
# 1. brew cask install powershell
|
# 1. brew cask install powershell
|
||||||
|
# 2. Environment variables for HOMEBREW_GITHUB_USER and HOMEBREW_GITHUB_API_TOKEN set.
|
||||||
#
|
#
|
||||||
# To run:
|
# To run:
|
||||||
# pwsh ./brew-update.ps1 -version 1.1.0
|
# pwsh ./brew-update.ps1 -version 1.1.0
|
||||||
|
|
||||||
|
# Cleaning up
|
||||||
|
cd $("$(brew --repository)" + "/Library/Taps/homebrew/homebrew-core/Formula")
|
||||||
|
git checkout master
|
||||||
|
git reset --hard origin/master
|
||||||
|
git push $env:HOMEBREW_GITHUB_USER master
|
||||||
|
git branch -D $("bitwarden-cli-" + $version)
|
||||||
|
git push $env:HOMEBREW_GITHUB_USER --delete $("bitwarden-cli-" + $version)
|
||||||
|
|
||||||
|
# Bump
|
||||||
$url = 'https://registry.npmjs.org/@bitwarden/cli/-/cli-' + $version + '.tgz';
|
$url = 'https://registry.npmjs.org/@bitwarden/cli/-/cli-' + $version + '.tgz';
|
||||||
brew bump-formula-pr --url="$url" bitwarden-cli
|
brew bump-formula-pr --url="$url" bitwarden-cli
|
||||||
|
Loading…
Reference in New Issue
Block a user