From 6f97085285f1aa4c69342281fb45014849334f29 Mon Sep 17 00:00:00 2001 From: Meisam <39205857+MFTabriz@users.noreply.github.com> Date: Wed, 28 Dec 2022 22:21:09 +0100 Subject: [PATCH] add Github actions linter to Github actions (#2521) * add actions linter * fix actions/checkout args * trigger actions lint on both yml/yaml ...and other possible changes in workflow --- .github/workflows/actions-lint.yml | 24 +++++++++++++++++++++ .github/workflows/javascript-formatting.yml | 1 - 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/actions-lint.yml diff --git a/.github/workflows/actions-lint.yml b/.github/workflows/actions-lint.yml new file mode 100644 index 000000000..5051c83c9 --- /dev/null +++ b/.github/workflows/actions-lint.yml @@ -0,0 +1,24 @@ +name: Lint + +on: + push: + branches: + - webv2 + paths: + - '.github/workflows/*' + pull_request: + branches: + - webv2 + paths: + - '.github/workflows/*' + +jobs: + actionlint: + name: GitHub actions + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - uses: docker://rhysd/actionlint:latest + with: + args: -shellcheck= -color \ No newline at end of file diff --git a/.github/workflows/javascript-formatting.yml b/.github/workflows/javascript-formatting.yml index c32b113b0..53d08bff5 100644 --- a/.github/workflows/javascript-formatting.yml +++ b/.github/workflows/javascript-formatting.yml @@ -61,7 +61,6 @@ jobs: ref: ${{ github.event.pull_request.head.ref }} repository: ${{ github.event.pull_request.head.repo.full_name }} fetch-depth: 0 - pull: --rebase --autostash - name: Install Dependencies run: npm install