2022-06-20 18:23:11 +02:00
|
|
|
---
|
|
|
|
name: Bump Desktop Cask
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- desktop-v**
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
shell: bash
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
update-desktop-cask:
|
|
|
|
name: Update Bitwarden Desktop Cask
|
2024-02-08 21:57:25 +01:00
|
|
|
runs-on: macos-13
|
2022-06-20 18:23:11 +02:00
|
|
|
steps:
|
|
|
|
- name: Login to Azure
|
2024-02-08 20:38:19 +01:00
|
|
|
uses: Azure/login@e15b166166a8746d1a47596803bd8c1b595455cf # v1.6.0
|
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-11-08 19:08:34 +01:00
|
|
|
uses: bitwarden/gh-actions/get-keyvault-secrets@main
|
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 cask
|
2023-05-05 22:17:19 +02:00
|
|
|
uses: macauley/action-homebrew-bump-cask@445c42390d790569d938f9068d01af39ca030feb # v1.0.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-cask
|
|
|
|
cask: bitwarden
|
|
|
|
tag: ${{ github.ref }}
|
|
|
|
revision: ${{ github.sha }}
|
2023-08-29 17:00:28 +02:00
|
|
|
force: true
|
2022-06-20 18:23:11 +02:00
|
|
|
dryrun: true
|