From 42b9f64ea153a298e8bea35e8d511884f5f5a850 Mon Sep 17 00:00:00 2001 From: Rak Laptudirm Date: Sun, 3 Apr 2022 12:36:12 +0530 Subject: [PATCH] merge: Update workflow organization and environments (#971) * chore: only run update directory on `master` * chore: move codespell to CI workflow * chore: remove codespell workflow(moved) * chore: listen for `push` only on `master` * chore: remove `pull_request` type params --- .github/workflows/Ci.yml | 18 +++++++++++++++++- .github/workflows/Codespell.yml | 13 ------------- .github/workflows/UpdateDirectory.yml | 5 ++++- 3 files changed, 21 insertions(+), 15 deletions(-) delete mode 100644 .github/workflows/Codespell.yml diff --git a/.github/workflows/Ci.yml b/.github/workflows/Ci.yml index 98ee27991..68cd98c45 100644 --- a/.github/workflows/Ci.yml +++ b/.github/workflows/Ci.yml @@ -1,9 +1,14 @@ name: Continuous Integration -on: [push, pull_request] +on: + push: + branches: + - master + pull_request: jobs: build: + name: Code style and tests runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -20,3 +25,14 @@ jobs: - name: 💄 Code style run: npm run style + + codespell: + name: Check for spelling errors + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: codespell-project/actions-codespell@master + with: + # file types to ignore + skip: "*.json,*.yml,DIRECTORY.md" + ignore_words_list: "ba,esy,yse" diff --git a/.github/workflows/Codespell.yml b/.github/workflows/Codespell.yml deleted file mode 100644 index 167989af3..000000000 --- a/.github/workflows/Codespell.yml +++ /dev/null @@ -1,13 +0,0 @@ -name: codespell -on: [push, pull_request] -jobs: - codespell: - name: Check for spelling errors - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: codespell-project/actions-codespell@master - with: - # file types to ignore - skip: "*.json,*.yml,DIRECTORY.md" - ignore_words_list: "ba,esy,yse" diff --git a/.github/workflows/UpdateDirectory.yml b/.github/workflows/UpdateDirectory.yml index b27a516e0..e8fda61c2 100644 --- a/.github/workflows/UpdateDirectory.yml +++ b/.github/workflows/UpdateDirectory.yml @@ -1,7 +1,10 @@ # This GitHub Action updates the DIRECTORY.md file (if needed) when doing a git push name: Update Directory -on: [push] +on: + push: + branches: + - master jobs: updateDirectory: