mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-25 12:15:18 +01:00
update ::set-output to latest (#4177)
* update ::set-output to latest * update workflow for linter error
This commit is contained in:
parent
bfa19a6749
commit
28dbb4c8a8
6
.github/workflows/build-browser.yml
vendored
6
.github/workflows/build-browser.yml
vendored
@ -63,8 +63,8 @@ jobs:
|
|||||||
repo_url=https://github.com/$GITHUB_REPOSITORY.git
|
repo_url=https://github.com/$GITHUB_REPOSITORY.git
|
||||||
adj_build_num=${GITHUB_SHA:0:7}
|
adj_build_num=${GITHUB_SHA:0:7}
|
||||||
|
|
||||||
echo "::set-output name=repo_url::$repo_url"
|
echo "repo_url=$repo_url" >> $GITHUB_OUTPUT
|
||||||
echo "::set-output name=adj_build_number::$adj_build_num"
|
echo "adj_build_number=$adj_build_num" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
|
||||||
locales-test:
|
locales-test:
|
||||||
@ -183,7 +183,7 @@ jobs:
|
|||||||
name: dist-opera-MV3-${{ env._BUILD_NUMBER }}.zip
|
name: dist-opera-MV3-${{ env._BUILD_NUMBER }}.zip
|
||||||
path: apps/browser/dist/dist-opera-mv3.zip
|
path: apps/browser/dist/dist-opera-mv3.zip
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
- name: Upload Chrome artifact
|
- name: Upload Chrome artifact
|
||||||
uses: actions/upload-artifact@6673cd052c4cd6fcf4b4e6e60ea986c889389535 # v3.0.0
|
uses: actions/upload-artifact@6673cd052c4cd6fcf4b4e6e60ea986c889389535 # v3.0.0
|
||||||
with:
|
with:
|
||||||
|
2
.github/workflows/build-cli.yml
vendored
2
.github/workflows/build-cli.yml
vendored
@ -62,7 +62,7 @@ jobs:
|
|||||||
id: retrieve-version
|
id: retrieve-version
|
||||||
run: |
|
run: |
|
||||||
PKG_VERSION=$(jq -r .version package.json)
|
PKG_VERSION=$(jq -r .version package.json)
|
||||||
echo "::set-output name=package_version::$PKG_VERSION"
|
echo "package_version=$PKG_VERSION" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
|
||||||
cli:
|
cli:
|
||||||
|
18
.github/workflows/build-desktop.yml
vendored
18
.github/workflows/build-desktop.yml
vendored
@ -87,29 +87,29 @@ jobs:
|
|||||||
id: retrieve-version
|
id: retrieve-version
|
||||||
run: |
|
run: |
|
||||||
PKG_VERSION=$(jq -r .version src/package.json)
|
PKG_VERSION=$(jq -r .version src/package.json)
|
||||||
echo "::set-output name=package_version::$PKG_VERSION"
|
echo "package_version=$PKG_VERSION" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Increment Version
|
- name: Increment Version
|
||||||
id: increment-version
|
id: increment-version
|
||||||
run: |
|
run: |
|
||||||
BUILD_NUMBER=$(expr 3000 + $GITHUB_RUN_NUMBER)
|
BUILD_NUMBER=$(expr 3000 + $GITHUB_RUN_NUMBER)
|
||||||
echo "Setting build number to $BUILD_NUMBER"
|
echo "Setting build number to $BUILD_NUMBER"
|
||||||
echo "::set-output name=build_number::$BUILD_NUMBER"
|
echo "build_number=$BUILD_NUMBER" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Get Version Channel
|
- name: Get Version Channel
|
||||||
id: release-channel
|
id: release-channel
|
||||||
run: |
|
run: |
|
||||||
case "${{ steps.retrieve-version.outputs.package_version }}" in
|
case "${{ steps.retrieve-version.outputs.package_version }}" in
|
||||||
*"alpha"*)
|
*"alpha"*)
|
||||||
echo "::set-output name=channel::alpha"
|
echo "channel=alpha" >> $GITHUB_OUTPUT
|
||||||
echo "[!] We do not yet support 'alpha'"
|
echo "[!] We do not yet support 'alpha'"
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
*"beta"*)
|
*"beta"*)
|
||||||
echo "::set-output name=channel::beta"
|
echo "channel=beta" >> $GITHUB_OUTPUT
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "::set-output name=channel::latest"
|
echo "channel=latest" >> $GITHUB_OUTPUT
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
@ -117,15 +117,15 @@ jobs:
|
|||||||
id: branch-check
|
id: branch-check
|
||||||
run: |
|
run: |
|
||||||
if [[ $(git ls-remote --heads origin rc) ]]; then
|
if [[ $(git ls-remote --heads origin rc) ]]; then
|
||||||
echo "::set-output name=rc_branch_exists::1"
|
echo "rc_branch_exists=1" >> $GITHUB_OUTPUT
|
||||||
else
|
else
|
||||||
echo "::set-output name=rc_branch_exists::0"
|
echo "rc_branch_exists=0" >> $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $(git ls-remote --heads origin hotfix-rc-desktop) ]]; then
|
if [[ $(git ls-remote --heads origin hotfix-rc-desktop) ]]; then
|
||||||
echo "::set-output name=hotfix_branch_exists::1"
|
echo "hotfix_branch_exists=1" >> $GITHUB_OUTPUT
|
||||||
else
|
else
|
||||||
echo "::set-output name=hotfix_branch_exists::0"
|
echo "hotfix_branch_exists=0" >> $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
4
.github/workflows/build-web.yml
vendored
4
.github/workflows/build-web.yml
vendored
@ -60,7 +60,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Get GitHub sha as version
|
- name: Get GitHub sha as version
|
||||||
id: version
|
id: version
|
||||||
run: echo "::set-output name=value::${GITHUB_SHA:0:7}"
|
run: echo "value=${GITHUB_SHA:0:7}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
build-artifacts:
|
build-artifacts:
|
||||||
name: Build artifacts
|
name: Build artifacts
|
||||||
@ -303,7 +303,7 @@ jobs:
|
|||||||
IMAGE_TAG=$IMAGE_TAG-$TAG_EXTENSION
|
IMAGE_TAG=$IMAGE_TAG-$TAG_EXTENSION
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "::set-output name=value::$IMAGE_TAG"
|
echo "value=$IMAGE_TAG" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Tag image
|
- name: Tag image
|
||||||
env:
|
env:
|
||||||
|
10
.github/workflows/release-desktop-beta.yml
vendored
10
.github/workflows/release-desktop-beta.yml
vendored
@ -60,22 +60,22 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
BUILD_NUMBER=$(expr 3000 + $GITHUB_RUN_NUMBER)
|
BUILD_NUMBER=$(expr 3000 + $GITHUB_RUN_NUMBER)
|
||||||
echo "Setting build number to $BUILD_NUMBER"
|
echo "Setting build number to $BUILD_NUMBER"
|
||||||
echo "::set-output name=build_number::$BUILD_NUMBER"
|
echo "build_number=$BUILD_NUMBER" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Get Version Channel
|
- name: Get Version Channel
|
||||||
id: release-channel
|
id: release-channel
|
||||||
run: |
|
run: |
|
||||||
case "${{ steps.version.outputs.version }}" in
|
case "${{ steps.version.outputs.version }}" in
|
||||||
*"alpha"*)
|
*"alpha"*)
|
||||||
echo "::set-output name=channel::alpha"
|
echo "channel=alpha" >> $GITHUB_OUTPUT
|
||||||
echo "[!] We do not yet support 'alpha'"
|
echo "[!] We do not yet support 'alpha'"
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
*"beta"*)
|
*"beta"*)
|
||||||
echo "::set-output name=channel::beta"
|
echo "channel=beta" >> $GITHUB_OUTPUT
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "::set-output name=channel::latest"
|
echo "channel=latest" >> $GITHUB_OUTPUT
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
@ -102,7 +102,7 @@ jobs:
|
|||||||
|
|
||||||
git push -u origin $branch_name
|
git push -u origin $branch_name
|
||||||
|
|
||||||
echo "::set-output name=branch-name::$branch_name"
|
echo "branch-name=$branch_name" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
linux:
|
linux:
|
||||||
name: Linux Build
|
name: Linux Build
|
||||||
|
6
.github/workflows/release-desktop.yml
vendored
6
.github/workflows/release-desktop.yml
vendored
@ -80,15 +80,15 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
case "${{ steps.version.outputs.version }}" in
|
case "${{ steps.version.outputs.version }}" in
|
||||||
*"alpha"*)
|
*"alpha"*)
|
||||||
echo "::set-output name=channel::alpha"
|
echo "channel=alpha" >> $GITHUB_OUTPUT
|
||||||
echo "[!] We do not yet support 'alpha'"
|
echo "[!] We do not yet support 'alpha'"
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
*"beta"*)
|
*"beta"*)
|
||||||
echo "::set-output name=channel::beta"
|
echo "channel=beta" >> $GITHUB_OUTPUT
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "::set-output name=channel::latest"
|
echo "channel=latest" >> $GITHUB_OUTPUT
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
2
.github/workflows/version-auto-bump.yml
vendored
2
.github/workflows/version-auto-bump.yml
vendored
@ -36,7 +36,7 @@ jobs:
|
|||||||
|
|
||||||
NEW_VER=$CURR_MAJOR.$NEW_PATCH
|
NEW_VER=$CURR_MAJOR.$NEW_PATCH
|
||||||
echo "New Version: $NEW_VER"
|
echo "New Version: $NEW_VER"
|
||||||
echo "::set-output name=new-version::$NEW_VER"
|
echo "new-version=$NEW_VER" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
trigger_version_bump:
|
trigger_version_bump:
|
||||||
name: "Trigger desktop version bump workflow"
|
name: "Trigger desktop version bump workflow"
|
||||||
|
9
.github/workflows/version-bump.yml
vendored
9
.github/workflows/version-bump.yml
vendored
@ -56,7 +56,7 @@ jobs:
|
|||||||
VERSION: ${{ github.event.inputs.version_number }}
|
VERSION: ${{ github.event.inputs.version_number }}
|
||||||
run: |
|
run: |
|
||||||
CLIENT=$(python -c "print('$CLIENT_NAME'.lower())")
|
CLIENT=$(python -c "print('$CLIENT_NAME'.lower())")
|
||||||
echo "::set-output name=client::$CLIENT"
|
echo "client=$CLIENT" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
git switch -c ${CLIENT}_version_bump_${VERSION}
|
git switch -c ${CLIENT}_version_bump_${VERSION}
|
||||||
|
|
||||||
@ -131,9 +131,9 @@ jobs:
|
|||||||
id: version-changed
|
id: version-changed
|
||||||
run: |
|
run: |
|
||||||
if [ -n "$(git status --porcelain)" ]; then
|
if [ -n "$(git status --porcelain)" ]; then
|
||||||
echo "::set-output name=changes_to_commit::TRUE"
|
echo "changes_to_commit=TRUE" >> $GITHUB_OUTPUT
|
||||||
else
|
else
|
||||||
echo "::set-output name=changes_to_commit::FALSE"
|
echo "changes_to_commit=FALSE" >> $GITHUB_OUTPUT
|
||||||
echo "No changes to commit!";
|
echo "No changes to commit!";
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -142,8 +142,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
CLIENT: ${{ steps.branch.outputs.client }}
|
CLIENT: ${{ steps.branch.outputs.client }}
|
||||||
VERSION: ${{ github.event.inputs.version_number }}
|
VERSION: ${{ github.event.inputs.version_number }}
|
||||||
run: |
|
run: git commit -m "Bumped ${CLIENT} version to ${VERSION}" -a
|
||||||
git commit -m "Bumped ${CLIENT} version to ${VERSION}" -a
|
|
||||||
|
|
||||||
- name: Push changes
|
- name: Push changes
|
||||||
if: ${{ steps.version-changed.outputs.changes_to_commit == 'TRUE' }}
|
if: ${{ steps.version-changed.outputs.changes_to_commit == 'TRUE' }}
|
||||||
|
Loading…
Reference in New Issue
Block a user