1
0
mirror of https://github.com/bitwarden/server.git synced 2025-02-26 03:31:34 +01:00

Move to using a shared workflow (#1874)

This commit is contained in:
Micaiah Martin 2022-02-18 13:29:23 -06:00 committed by GitHub
parent e4c1596882
commit ecfdb8ca03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 40 deletions

View File

@ -1,27 +0,0 @@
---
name: Workflow Linter
on:
push:
branches: add-workflow-linter
# branches-ignore:
# - 'l10n_master'
# - 'gh-pages'
# workflow_dispatch:
# inputs: {}
jobs:
cloc:
name: CLOC
runs-on: ubuntu-20.04
steps:
- name: Checkout repo
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
- name: Install cloc
run: |
sudo apt-get update
sudo apt-get -y install cloc
- name: Print lines of code
run: cloc --include-lang C#,SQL,Razor,"Bourne Shell",PowerShell,HTML,CSS,Sass,JavaScript,TypeScript --vcs git

View File

@ -5,18 +5,7 @@ on:
pull_request:
paths:
- .github/workflows/**
workflow_call:
jobs:
lint:
name: "Workflow Linter"
runs-on: ubuntu-20.04
steps:
- name: Checkout Version Branch
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
- name: Workflow Lint
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: bitwarden/gh-actions/lint-workflow@6f6ac44e93df2aaacfb46018dbeffffaad4a18e8
call-workflow:
uses: bitwarden/gh-actions/.github/workflows/workflow-linter.yml@master