Add Brew Bump Workflows (#2934)
This commit is contained in:
parent
b28c07790d
commit
7310fa826e
|
@ -0,0 +1,42 @@
|
||||||
|
---
|
||||||
|
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
|
||||||
|
uses: Azure/login@1f63701bf3e6892515f1b7ce2d2bf1708b46beaf
|
||||||
|
with:
|
||||||
|
creds: ${{ secrets.AZURE_PROD_KV_CREDENTIALS }}
|
||||||
|
|
||||||
|
- name: Retrieve secrets
|
||||||
|
id: retrieve-secrets
|
||||||
|
uses: Azure/get-keyvault-secrets@b5c723b9ac7870c022b8c35befe620b7009b336f
|
||||||
|
with:
|
||||||
|
keyvault: "bitwarden-prod-kv"
|
||||||
|
secrets: "brew-bump-workflow-pat"
|
||||||
|
|
||||||
|
- name: Update Homebrew formula
|
||||||
|
uses: dawidd6/action-homebrew-bump-formula@dd221ff435f42fa8102b5871bb1929af9d76476c
|
||||||
|
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
|
||||||
|
cask: bitwarden-cli
|
||||||
|
tag: ${{ github.ref }}
|
||||||
|
revision: ${{ github.sha }}
|
||||||
|
force: false
|
||||||
|
dryrun: true
|
|
@ -0,0 +1,42 @@
|
||||||
|
---
|
||||||
|
name: Bump Desktop Cask
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- desktop-v**
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
update-desktop-cask:
|
||||||
|
name: Update Bitwarden Desktop Cask
|
||||||
|
runs-on: macos-11
|
||||||
|
steps:
|
||||||
|
- name: Login to Azure
|
||||||
|
uses: Azure/login@1f63701bf3e6892515f1b7ce2d2bf1708b46beaf
|
||||||
|
with:
|
||||||
|
creds: ${{ secrets.AZURE_PROD_KV_CREDENTIALS }}
|
||||||
|
|
||||||
|
- name: Retrieve secrets
|
||||||
|
id: retrieve-secrets
|
||||||
|
uses: Azure/get-keyvault-secrets@b5c723b9ac7870c022b8c35befe620b7009b336f
|
||||||
|
with:
|
||||||
|
keyvault: "bitwarden-prod-kv"
|
||||||
|
secrets: "brew-bump-workflow-pat"
|
||||||
|
|
||||||
|
- name: Update Homebrew cask
|
||||||
|
uses: macauley/action-homebrew-bump-cask@445c42390d790569d938f9068d01af39ca030feb
|
||||||
|
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 }}
|
||||||
|
force: false
|
||||||
|
dryrun: true
|
|
@ -159,7 +159,7 @@ jobs:
|
||||||
REM Copy apps\browser to Browser source directory
|
REM Copy apps\browser to Browser source directory
|
||||||
mkdir browser-source\apps\browser
|
mkdir browser-source\apps\browser
|
||||||
xcopy apps\browser\* browser-source\apps\browser /E
|
xcopy apps\browser\* browser-source\apps\browser /E
|
||||||
|
|
||||||
REM Copy libs to Browser source directory
|
REM Copy libs to Browser source directory
|
||||||
mkdir browser-source\libs
|
mkdir browser-source\libs
|
||||||
xcopy libs\* browser-source\libs /E
|
xcopy libs\* browser-source\libs /E
|
||||||
|
@ -408,7 +408,7 @@ jobs:
|
||||||
BUILD_STATUS: ${{ needs.build.result }}
|
BUILD_STATUS: ${{ needs.build.result }}
|
||||||
SAFARI_BUILD_STATUS: ${{ needs.build-safari.result }}
|
SAFARI_BUILD_STATUS: ${{ needs.build-safari.result }}
|
||||||
CROWDIN_PUSH_STATUS: ${{ needs.crowdin-push.result }}
|
CROWDIN_PUSH_STATUS: ${{ needs.crowdin-push.result }}
|
||||||
TRIGGER_DESKTOP_BUILD_STATUS: ${{ needs.trigger-desktop-build.result }}
|
TRIGGER_DESKTOP_BUILD_STATUS: ${{ needs.trigger-desktop-build.result }}
|
||||||
run: |
|
run: |
|
||||||
if [ "$CLOC_STATUS" = "failure" ]; then
|
if [ "$CLOC_STATUS" = "failure" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
|
|
|
@ -26,7 +26,10 @@ on:
|
||||||
- '!*.txt'
|
- '!*.txt'
|
||||||
- '.github/workflows/build-web.yml'
|
- '.github/workflows/build-web.yml'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs: {}
|
inputs:
|
||||||
|
custom_tag_extension:
|
||||||
|
description: "Custom image tag extension"
|
||||||
|
required: false
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
cloc:
|
cloc:
|
||||||
|
|
|
@ -10,12 +10,12 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Set up Node
|
- name: Set up Node
|
||||||
uses: actions/setup-node@46071b5c7a2e0c34e49c3cb8a0e792e86e18d5ea # v2.1.5
|
uses: actions/setup-node@46071b5c7a2e0c34e49c3cb8a0e792e86e18d5ea # v2.1.5
|
||||||
with:
|
with:
|
||||||
node-version: "16"
|
node-version: "16"
|
||||||
|
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
|
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
CLIENT=$(python -c "print('$CLIENT_NAME'.lower())")
|
CLIENT=$(python -c "print('$CLIENT_NAME'.lower())")
|
||||||
echo "::set-output name=client::$CLIENT"
|
echo "::set-output name=client::$CLIENT"
|
||||||
|
|
||||||
git switch -c ${CLIENT}_version_bump_${{ github.event.inputs.version_number }}
|
git switch -c ${CLIENT}_version_bump_${{ github.event.inputs.version_number }}
|
||||||
git push -u origin ${CLIENT}_version_bump_${{ github.event.inputs.version_number }}
|
git push -u origin ${CLIENT}_version_bump_${{ github.event.inputs.version_number }}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue