mirror of
https://github.com/bitwarden/desktop.git
synced 2024-11-28 12:35:40 +01:00
Add step to get Safari Extension branch ref (#1134)
This commit is contained in:
parent
3ebfc14cbf
commit
ecfbf2ba15
23
.github/workflows/build.yml
vendored
23
.github/workflows/build.yml
vendored
@ -30,6 +30,7 @@ jobs:
|
||||
outputs:
|
||||
package_version: ${{ steps.retrieve-version.outputs.package_version }}
|
||||
build_number: ${{ steps.increment-version.outputs.build_number }}
|
||||
safari_ref: ${{ steps.safari-ref.outputs.safari_ref }}
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
|
||||
@ -40,13 +41,27 @@ jobs:
|
||||
PKG_VERSION=$(jq -r .version src/package.json)
|
||||
echo "::set-output name=package_version::$PKG_VERSION"
|
||||
|
||||
- name: Increment version
|
||||
- name: Increment Version
|
||||
id: increment-version
|
||||
run: |
|
||||
BUILD_NUMBER=$(expr 500 + $GITHUB_RUN_NUMBER)
|
||||
echo "Setting build number to $BUILD_NUMBER"
|
||||
echo "::set-output name=build_number::$BUILD_NUMBER"
|
||||
|
||||
- name: Get Safari Branch Ref
|
||||
id: safari-ref
|
||||
run: |
|
||||
SAFARI_REF=master
|
||||
|
||||
if [ "$GITHUB_REF" = "hotfix" ]; then
|
||||
SAFARI_REF=hotfix
|
||||
elif [ "$GITHUB_REF" = "rc" ]; then
|
||||
SAFARI_REF=rc
|
||||
fi
|
||||
|
||||
echo "Setting Safari Extension ref to $SAFARI_REF"
|
||||
echo "::set-output name=safari_ref::$SAFARI_REF"
|
||||
|
||||
|
||||
linux:
|
||||
name: Linux Build
|
||||
@ -465,6 +480,7 @@ jobs:
|
||||
with:
|
||||
repository: 'bitwarden/browser'
|
||||
path: 'dist-safari/browser'
|
||||
ref: ${{ needs.setup.outputs.safari_ref }}
|
||||
|
||||
- name: Build Safari extension
|
||||
shell: pwsh
|
||||
@ -612,7 +628,7 @@ jobs:
|
||||
with:
|
||||
repository: 'bitwarden/browser'
|
||||
path: 'dist-safari/browser'
|
||||
ref: ${{ github.ref }}
|
||||
ref: ${{ needs.setup.outputs.safari_ref }}
|
||||
|
||||
- name: Build Safari extension
|
||||
if: steps.safari-cache.outputs.cache-hit != 'true'
|
||||
@ -800,7 +816,7 @@ jobs:
|
||||
with:
|
||||
repository: 'bitwarden/browser'
|
||||
path: 'dist-safari/browser'
|
||||
ref: ${{ github.ref }}
|
||||
ref: ${{ needs.setup.outputs.safari_ref }}
|
||||
|
||||
- name: Build Safari extension
|
||||
if: steps.safari-cache.outputs.cache-hit != 'true'
|
||||
@ -970,6 +986,7 @@ jobs:
|
||||
with:
|
||||
repository: 'bitwarden/browser'
|
||||
path: 'dist-safari/browser'
|
||||
ref: ${{ needs.setup.outputs.safari_ref }}
|
||||
|
||||
- name: Build Safari extension
|
||||
if: steps.safari-cache.outputs.cache-hit != 'true'
|
||||
|
Loading…
Reference in New Issue
Block a user