|
|
|
|
@ -5,7 +5,10 @@ on:
@@ -5,7 +5,10 @@ on:
|
|
|
|
|
release: |
|
|
|
|
types: [published] |
|
|
|
|
workflow_dispatch: |
|
|
|
|
inputs: {} |
|
|
|
|
inputs: |
|
|
|
|
release_tag: |
|
|
|
|
description: "Release Tag" |
|
|
|
|
required: true |
|
|
|
|
|
|
|
|
|
jobs: |
|
|
|
|
update-links: |
|
|
|
|
@ -24,13 +27,22 @@ jobs:
@@ -24,13 +27,22 @@ jobs:
|
|
|
|
|
keyvault: "bitwarden-prod-kv" |
|
|
|
|
secrets: "rebrandly-apikey" |
|
|
|
|
|
|
|
|
|
- name: Set tag name |
|
|
|
|
id: tag-name |
|
|
|
|
run: | |
|
|
|
|
if [ "$GITHUB_EVENT_NAME" == "workflow_dispatch" ]; then |
|
|
|
|
echo "::set-output name=value::${{ github.event.inputs.release_tag }}" |
|
|
|
|
else |
|
|
|
|
echo "::set-output name=value::$GITHUB_REF_NAME" |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
- name: Update Bitwarden Script PowerShell Link |
|
|
|
|
uses: bitwarden/gh-actions/update-rebrandly-link@664c8899c95490c65dac0df11519d24ed8419c85 |
|
|
|
|
with: |
|
|
|
|
apikey: ${{ steps.retrieve-secrets.outputs.rebrandly-apikey }} |
|
|
|
|
domain: "go.btwrdn.co" |
|
|
|
|
slashtag: "bw-ps" |
|
|
|
|
destination: "https://github.org/bitwarden/self-host/releases/download/${{ env.GITHUB_REF }}/bitwarden.ps1" |
|
|
|
|
destination: "https://github.org/bitwarden/self-host/releases/download/${{ steps.tag-name.outputs.value }}/bitwarden.ps1" |
|
|
|
|
|
|
|
|
|
- name: Update Run Script PowerShell Link |
|
|
|
|
uses: bitwarden/gh-actions/update-rebrandly-link@664c8899c95490c65dac0df11519d24ed8419c85 |
|
|
|
|
@ -38,7 +50,7 @@ jobs:
@@ -38,7 +50,7 @@ jobs:
|
|
|
|
|
apikey: ${{ steps.retrieve-secrets.outputs.rebrandly-apikey }} |
|
|
|
|
domain: "go.btwrdn.co" |
|
|
|
|
slashtag: "bw-ps-run" |
|
|
|
|
destination: "https://github.org/bitwarden/self-host/releases/download/${{ env.GITHUB_REF }}/run.ps1" |
|
|
|
|
destination: "https://github.org/bitwarden/self-host/releases/download/${{ steps.tag-name.outputs.value }}/run.ps1" |
|
|
|
|
|
|
|
|
|
- name: Update Bitwarden Script Shell Link |
|
|
|
|
uses: bitwarden/gh-actions/update-rebrandly-link@664c8899c95490c65dac0df11519d24ed8419c85 |
|
|
|
|
@ -46,7 +58,7 @@ jobs:
@@ -46,7 +58,7 @@ jobs:
|
|
|
|
|
apikey: ${{ steps.retrieve-secrets.outputs.rebrandly-apikey }} |
|
|
|
|
domain: "go.btwrdn.co" |
|
|
|
|
slashtag: "bw-sh" |
|
|
|
|
destination: "https://github.org/bitwarden/self-host/releases/download/${{ env.GITHUB_REF }}/bitwarden.sh" |
|
|
|
|
destination: "https://github.org/bitwarden/self-host/releases/download/${{ steps.tag-name.outputs.value }}/bitwarden.sh" |
|
|
|
|
|
|
|
|
|
- name: Update Run Script Shell Link |
|
|
|
|
uses: bitwarden/gh-actions/update-rebrandly-link@664c8899c95490c65dac0df11519d24ed8419c85 |
|
|
|
|
@ -54,4 +66,4 @@ jobs:
@@ -54,4 +66,4 @@ jobs:
|
|
|
|
|
apikey: ${{ steps.retrieve-secrets.outputs.rebrandly-apikey }} |
|
|
|
|
domain: "go.btwrdn.co" |
|
|
|
|
slashtag: "bw-sh-run" |
|
|
|
|
destination: "https://github.org/bitwarden/self-host/releases/download/${{ env.GITHUB_REF }}/run.sh" |
|
|
|
|
destination: "https://github.org/bitwarden/self-host/releases/download/${{ steps.tag-name.outputs.value }}/run.sh" |
|
|
|
|
|