Skip to content

Commit

Permalink
imp: optimize some workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
jkcorrea committed Jan 13, 2023
1 parent be74c16 commit 97b61b3
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ jobs:
name: Bump version
runs-on: ubuntu-latest
steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/[email protected]

# Setup repo
- name: Check out source
uses: actions/checkout@v3
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,30 @@ on:
workflow_dispatch:

jobs:
only-doc-changes:
name: 📒 Only doc changes?
runs-on: ubuntu-latest
outputs:
only-doc-changes: ${{ steps.only-doc-changes.outputs.only_modified }}
steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/[email protected]
- name: ⬇️ Checkout repo
uses: actions/checkout@v3
with:
fetch-depth: 2 # Fetch the preceding commit as well, to detect changes
- name: 🕵️‍♀️ Detect if doc-only changes
id: only-doc-changes
uses: tj-actions/changed-files@v19
with:
files: |
README.md
LICENSE.md
.vscode/
docs/
.env.example
.editorconfig
ci:
strategy:
matrix:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/[email protected]

- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
Expand Down

0 comments on commit 97b61b3

Please sign in to comment.