1
0
mirror of https://github.com/bitwarden/browser synced 2024-12-25 17:32:46 +01:00

Allow Build Web workflow to trigger on new tags (#7856)

This commit is contained in:
Vince Grassia 2024-02-08 12:13:32 -05:00 committed by GitHub
parent 2525a3707f
commit 8c3754fd43
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,6 +25,8 @@ on:
- '!*.md' - '!*.md'
- '!*.txt' - '!*.txt'
- '.github/workflows/build-web.yml' - '.github/workflows/build-web.yml'
release:
types: [published]
workflow_dispatch: workflow_dispatch:
inputs: inputs:
custom_tag_extension: custom_tag_extension:
@ -217,7 +219,7 @@ jobs:
if [[ $(grep "pull" <<< "${GITHUB_REF}") ]]; then if [[ $(grep "pull" <<< "${GITHUB_REF}") ]]; then
IMAGE_TAG=$(echo "${GITHUB_HEAD_REF}" | sed "s#/#-#g") IMAGE_TAG=$(echo "${GITHUB_HEAD_REF}" | sed "s#/#-#g")
else else
IMAGE_TAG=$(echo "${GITHUB_REF:11}" | sed "s#/#-#g") IMAGE_TAG=$(echo "${GITHUB_REF_NAME}" | sed "s#/#-#g")
fi fi
if [[ "$IMAGE_TAG" == "main" ]]; then if [[ "$IMAGE_TAG" == "main" ]]; then