mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-27 12:36:14 +01:00
Update workflows with linter suggestions (#1056)
This commit is contained in:
parent
6bfd4ebafd
commit
fcadedd458
1
.github/workflows/build.yml
vendored
1
.github/workflows/build.yml
vendored
@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
name: Build
|
name: Build
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
5
.github/workflows/crowndin-sync.yml
vendored
5
.github/workflows/crowndin-sync.yml
vendored
@ -1,10 +1,11 @@
|
|||||||
|
---
|
||||||
name: Crowdin Sync
|
name: Crowdin Sync
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs: {}
|
inputs: {}
|
||||||
#schedule:
|
# schedule:
|
||||||
# - cron: '0 0 * * *'
|
# - cron: '0 0 * * *'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
crowdin-sync:
|
crowdin-sync:
|
||||||
|
37
.github/workflows/deploy.yml
vendored
37
.github/workflows/deploy.yml
vendored
@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
name: Deploy
|
name: Deploy
|
||||||
|
|
||||||
on:
|
on:
|
||||||
@ -47,8 +48,8 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: setup
|
needs: setup
|
||||||
env:
|
env:
|
||||||
PKG_VERSION: ${{ needs.setup.outputs.package_version }}
|
_PKG_VERSION: ${{ needs.setup.outputs.package_version }}
|
||||||
TAG_VERSION: ${{ needs.setup.outputs.tag_version }}
|
_TAG_VERSION: ${{ needs.setup.outputs.tag_version }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repo
|
- name: Checkout Repo
|
||||||
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
|
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
|
||||||
@ -65,8 +66,8 @@ jobs:
|
|||||||
uses: Xotl/cool-github-releases@16c58a5863d6ba9944f63ca8bb78bb3249ce1d81 # v1.1.6
|
uses: Xotl/cool-github-releases@16c58a5863d6ba9944f63ca8bb78bb3249ce1d81 # v1.1.6
|
||||||
with:
|
with:
|
||||||
mode: download
|
mode: download
|
||||||
tag_name: ${{ env.TAG_VERSION }}
|
tag_name: ${{ env._TAG_VERSION }}
|
||||||
assets: bitwarden_${{ env.PKG_VERSION }}_amd64.snap|./dist/bitwarden_${{ env.PKG_VERSION }}_amd64.snap
|
assets: bitwarden_${{ env._PKG_VERSION }}_amd64.snap|./dist/bitwarden_${{ env._PKG_VERSION }}_amd64.snap
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
@ -74,7 +75,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Deploy to Snap Store
|
- name: Deploy to Snap Store
|
||||||
run: |
|
run: |
|
||||||
snapcraft upload dist/bitwarden_${{ env.PKG_VERSION }}_amd64.snap --release stable
|
snapcraft upload dist/bitwarden_${{ env._PKG_VERSION }}_amd64.snap --release stable
|
||||||
snapcraft logout
|
snapcraft logout
|
||||||
|
|
||||||
|
|
||||||
@ -83,8 +84,8 @@ jobs:
|
|||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
needs: setup
|
needs: setup
|
||||||
env:
|
env:
|
||||||
PKG_VERSION: ${{ needs.setup.outputs.package_version }}
|
_PKG_VERSION: ${{ needs.setup.outputs.package_version }}
|
||||||
TAG_VERSION: ${{ needs.setup.outputs.tag_version }}
|
_TAG_VERSION: ${{ needs.setup.outputs.tag_version }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repo
|
- name: Checkout Repo
|
||||||
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
|
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
|
||||||
@ -93,8 +94,8 @@ jobs:
|
|||||||
uses: Xotl/cool-github-releases@16c58a5863d6ba9944f63ca8bb78bb3249ce1d81 # v1.1.6
|
uses: Xotl/cool-github-releases@16c58a5863d6ba9944f63ca8bb78bb3249ce1d81 # v1.1.6
|
||||||
with:
|
with:
|
||||||
mode: download
|
mode: download
|
||||||
tag_name: ${{ env.TAG_VERSION }}
|
tag_name: ${{ env._TAG_VERSION }}
|
||||||
assets: bitwarden.${{ env.PKG_VERSION }}.nupkg
|
assets: bitwarden.${{ env._PKG_VERSION }}.nupkg
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Setup Chocolatey
|
- name: Setup Chocolatey
|
||||||
@ -110,8 +111,8 @@ jobs:
|
|||||||
uses: Xotl/cool-github-releases@16c58a5863d6ba9944f63ca8bb78bb3249ce1d81 # v1.1.6
|
uses: Xotl/cool-github-releases@16c58a5863d6ba9944f63ca8bb78bb3249ce1d81 # v1.1.6
|
||||||
with:
|
with:
|
||||||
mode: download
|
mode: download
|
||||||
tag_name: ${{ env.TAG_VERSION }}
|
tag_name: ${{ env._TAG_VERSION }}
|
||||||
assets: bitwarden.${{ env.PKG_VERSION }}.nupkg|./dist/bitwarden.${{ env.PKG_VERSION }}.nupkg
|
assets: bitwarden.${{ env._PKG_VERSION }}.nupkg|./dist/bitwarden.${{ env._PKG_VERSION }}.nupkg
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Push to Chocolatey
|
- name: Push to Chocolatey
|
||||||
@ -126,8 +127,8 @@ jobs:
|
|||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
needs: setup
|
needs: setup
|
||||||
env:
|
env:
|
||||||
PKG_VERSION: ${{ needs.setup.outputs.package_version }}
|
_PKG_VERSION: ${{ needs.setup.outputs.package_version }}
|
||||||
TAG_VERSION: ${{ needs.setup.outputs.tag_version }}
|
_TAG_VERSION: ${{ needs.setup.outputs.tag_version }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
|
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
|
||||||
@ -139,8 +140,8 @@ jobs:
|
|||||||
uses: Xotl/cool-github-releases@16c58a5863d6ba9944f63ca8bb78bb3249ce1d81 # v1.1.6
|
uses: Xotl/cool-github-releases@16c58a5863d6ba9944f63ca8bb78bb3249ce1d81 # v1.1.6
|
||||||
with:
|
with:
|
||||||
mode: download
|
mode: download
|
||||||
tag_name: ${{ env.TAG_VERSION }}
|
tag_name: ${{ env._TAG_VERSION }}
|
||||||
assets: Bitwarden-${{ env.PKG_VERSION }}-universal.pkg|./dist/mas-universal/Bitwarden-${{ env.PKG_VERSION }}-universal.pkg
|
assets: Bitwarden-${{ env._PKG_VERSION }}-universal.pkg|./dist/mas-universal/Bitwarden-${{ env._PKG_VERSION }}-universal.pkg
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Deploy to App Store
|
- name: Deploy to App Store
|
||||||
@ -150,7 +151,6 @@ jobs:
|
|||||||
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
|
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
auto-updater-deploy:
|
auto-updater-deploy:
|
||||||
name: Release auto-updater files
|
name: Release auto-updater files
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -160,8 +160,7 @@ jobs:
|
|||||||
- choco
|
- choco
|
||||||
- macos
|
- macos
|
||||||
env:
|
env:
|
||||||
RELEASE_VERSION: ${{ needs.setup.outputs.release_version }}
|
_TAG_VERSION: ${{ needs.setup.outputs.tag_version }}
|
||||||
TAG_VERSION: ${{ needs.setup.outputs.tag_version }}
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
|
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
|
||||||
@ -172,7 +171,7 @@ jobs:
|
|||||||
-H "Authorization:token ${{ secrets.GITHUB_TOKEN }}" \
|
-H "Authorization:token ${{ secrets.GITHUB_TOKEN }}" \
|
||||||
-H "Accept:application/vnd.github.v3+json" \
|
-H "Accept:application/vnd.github.v3+json" \
|
||||||
https://api.github.com/repos/$GITHUB_REPOSITORY/releases \
|
https://api.github.com/repos/$GITHUB_REPOSITORY/releases \
|
||||||
| jq -r " .[] | select( .tag_name == \"$TAG_VERSION\")" > release.json
|
| jq -r " .[] | select( .tag_name == \"$_TAG_VERSION\")" > release.json
|
||||||
|
|
||||||
echo "=====RELEASE====="
|
echo "=====RELEASE====="
|
||||||
echo Release:
|
echo Release:
|
||||||
|
7
.github/workflows/release.yml
vendored
7
.github/workflows/release.yml
vendored
@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
name: Release
|
name: Release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
@ -435,13 +436,13 @@ jobs:
|
|||||||
|
|
||||||
|
|
||||||
update-release-assets:
|
update-release-assets:
|
||||||
|
name: Update Release Assets
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs:
|
needs:
|
||||||
- setup
|
- setup
|
||||||
- linux
|
- linux
|
||||||
env:
|
env:
|
||||||
PKG_VERSION: ${{ needs.setup.outputs.package_version }}
|
_TAG_VERSION: ${{ needs.setup.outputs.tag_version }}
|
||||||
TAG_VERSION: ${{ needs.setup.outputs.tag_version }}
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
|
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
|
||||||
@ -452,7 +453,7 @@ jobs:
|
|||||||
-H "Authorization:token ${{ secrets.GITHUB_TOKEN }}" \
|
-H "Authorization:token ${{ secrets.GITHUB_TOKEN }}" \
|
||||||
-H "Accept:application/vnd.github.v3+json" \
|
-H "Accept:application/vnd.github.v3+json" \
|
||||||
https://api.github.com/repos/$GITHUB_REPOSITORY/releases \
|
https://api.github.com/repos/$GITHUB_REPOSITORY/releases \
|
||||||
| jq -r " .[] | select( .tag_name == \"$TAG_VERSION\")" > release.json
|
| jq -r " .[] | select( .tag_name == \"$_TAG_VERSION\")" > release.json
|
||||||
|
|
||||||
echo "=====RELEASE====="
|
echo "=====RELEASE====="
|
||||||
echo Release:
|
echo Release:
|
||||||
|
Loading…
Reference in New Issue
Block a user