2022-06-20 18:23:11 +02:00
|
|
|
---
|
|
|
|
name: Bump CLI Formula
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- cli-v**
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
shell: bash
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
update-desktop-cask:
|
|
|
|
name: Update Bitwarden CLI Formula
|
|
|
|
runs-on: macos-11
|
|
|
|
steps:
|
|
|
|
- name: Login to Azure
|
2023-05-09 18:38:11 +02:00
|
|
|
uses: Azure/login@92a5484dfaf04ca78a94597f4f19fea633851fa2 # v1.4.7
|
2022-06-20 18:23:11 +02:00
|
|
|
with:
|
2023-04-11 18:37:58 +02:00
|
|
|
creds: ${{ secrets.AZURE_KV_CI_SERVICE_PRINCIPAL }}
|
2022-06-20 18:23:11 +02:00
|
|
|
|
|
|
|
- name: Retrieve secrets
|
|
|
|
id: retrieve-secrets
|
2023-10-25 16:35:46 +02:00
|
|
|
uses: bitwarden/gh-actions/get-keyvault-secrets@master
|
2022-10-13 21:38:47 +02:00
|
|
|
with:
|
2023-04-11 18:37:58 +02:00
|
|
|
keyvault: "bitwarden-ci"
|
2022-10-13 21:38:47 +02:00
|
|
|
secrets: "brew-bump-workflow-pat"
|
2022-06-20 18:23:11 +02:00
|
|
|
|
|
|
|
- name: Update Homebrew formula
|
2023-05-09 18:38:11 +02:00
|
|
|
uses: dawidd6/action-homebrew-bump-formula@d3667e5ae14df19579e4414897498e3e88f2f458 # v3.10.0
|
2022-06-20 18:23:11 +02:00
|
|
|
with:
|
|
|
|
# Required, custom GitHub access token with the 'public_repo' and 'workflow' scopes
|
|
|
|
token: ${{ steps.retrieve-secrets.outputs.brew-bump-workflow-pat }}
|
|
|
|
org: bitwarden
|
|
|
|
tap: Homebrew/homebrew-core
|
2023-07-06 18:52:03 +02:00
|
|
|
formula: bitwarden-cli
|
2022-06-20 18:23:11 +02:00
|
|
|
tag: ${{ github.ref }}
|
|
|
|
revision: ${{ github.sha }}
|
2023-08-29 17:00:28 +02:00
|
|
|
force: true
|