From ecfdb8ca03260d2100303f8e475d0042f320d381 Mon Sep 17 00:00:00 2001 From: Micaiah Martin <77340197+mimartin12@users.noreply.github.com> Date: Fri, 18 Feb 2022 13:29:23 -0600 Subject: [PATCH] Move to using a shared workflow (#1874) --- .github/workflows/linter.yml | 27 --------------------------- .github/workflows/workflow-linter.yml | 15 ++------------- 2 files changed, 2 insertions(+), 40 deletions(-) delete mode 100644 .github/workflows/linter.yml diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml deleted file mode 100644 index cb77591230..0000000000 --- a/.github/workflows/linter.yml +++ /dev/null @@ -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 diff --git a/.github/workflows/workflow-linter.yml b/.github/workflows/workflow-linter.yml index 02ba836003..9fda2eee0a 100644 --- a/.github/workflows/workflow-linter.yml +++ b/.github/workflows/workflow-linter.yml @@ -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