diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index aee8066..0815965 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -367,21 +367,6 @@ jobs: keyvault: "bitwarden-ci" secrets: "github-pat-bitwarden-devops-bot-repo-scope" - - name: Trigger update-links workflow - uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 - with: - github-token: ${{ steps.retrieve-secret-pat.outputs.github-pat-bitwarden-devops-bot-repo-scope }} - script: | - await github.rest.actions.createWorkflowDispatch({ - owner: 'bitwarden', - repo: 'self-host', - workflow_id: 'update-links.yml', - ref: 'main', - inputs: { - release_tag: v${{ github.event.inputs.release_version }} - } - }); - - name: Trigger release-digital-ocean workflow uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 with: diff --git a/.github/workflows/update-links.yml b/.github/workflows/update-links.yml deleted file mode 100644 index 01098a9..0000000 --- a/.github/workflows/update-links.yml +++ /dev/null @@ -1,75 +0,0 @@ -name: Update Links - -on: - release: - types: [published] - workflow_dispatch: - inputs: - release_tag: - description: "Release Tag" - required: true - -jobs: - update-links: - name: Update Links - runs-on: ubuntu-22.04 - steps: - - name: Login to Azure - CI Subscription - uses: Azure/login@e15b166166a8746d1a47596803bd8c1b595455cf # v1.6.0 - with: - creds: ${{ secrets.AZURE_KV_CI_SERVICE_PRINCIPAL }} - - - name: Retrieve secrets - id: retrieve-secrets - env: - KEYVAULT: bitwarden-ci - SECRETS: | - rebrandly-apikey - run: | - for i in ${SECRETS//,/ } - do - VALUE=$(az keyvault secret show --vault-name $KEYVAULT --name $i --query value --output tsv) - echo "::add-mask::$VALUE" - echo "$i=$VALUE" >> $GITHUB_OUTPUT - done - - - name: Set tag name - id: tag-name - run: | - if [ "$GITHUB_EVENT_NAME" == "workflow_dispatch" ]; then - echo "value=${{ github.event.inputs.release_tag }}" >> $GITHUB_OUTPUT - else - echo "value=$GITHUB_REF_NAME" >> $GITHUB_OUTPUT - fi - - - name: Update Bitwarden Script PowerShell Link - uses: bitwarden/gh-actions/update-rebrandly-link@main - with: - apikey: ${{ steps.retrieve-secrets.outputs.rebrandly-apikey }} - domain: "go.btwrdn.co" - slashtag: "bw-ps" - destination: "https://github.com/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@main - with: - apikey: ${{ steps.retrieve-secrets.outputs.rebrandly-apikey }} - domain: "go.btwrdn.co" - slashtag: "bw-ps-run" - destination: "https://github.com/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@main - with: - apikey: ${{ steps.retrieve-secrets.outputs.rebrandly-apikey }} - domain: "go.btwrdn.co" - slashtag: "bw-sh" - destination: "https://github.com/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@main - with: - apikey: ${{ steps.retrieve-secrets.outputs.rebrandly-apikey }} - domain: "go.btwrdn.co" - slashtag: "bw-sh-run" - destination: "https://github.com/bitwarden/self-host/releases/download/${{ steps.tag-name.outputs.value }}/run.sh"