Skip to content

Commit

Permalink
feat(workflows): Prevent skipped jobs from stopping downstream jobs -- 2
Browse files Browse the repository at this point in the history
  • Loading branch information
RasmusSkytte committed Oct 4, 2024
1 parent f6f95fa commit c9530b1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 21 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/document.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,9 @@ jobs:
document:
name: 📖 Document
runs-on: ubuntu-latest
if: ${{ inputs.skip == 'false' }}

steps:
- name: Skip job if not required
run: |
if [ "${{ inputs.skip }}" = "true" ]; then
echo "Skipping update-lockfile job as skip is set to true."
exit 0
fi
- name: Checkout repo
uses: actions/checkout@v4
with:
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/render-readme.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,9 @@ jobs:
render:
name: 📖 README
runs-on: ubuntu-latest
if: ${{ inputs.skip == 'false' }}

steps:
- name: Skip job if not required
run: |
if [ "${{ inputs.skip }}" = "true" ]; then
echo "Skipping update-lockfile job as skip is set to true."
exit 0
fi
- name: Checkout repo
uses: actions/checkout@v4
with:
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/update-lockfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,9 @@ jobs:
update-lockfile:
name: 🛠️ Store dependency versions
runs-on: ubuntu-latest
if: ${{ inputs.skip == 'false' }}

steps:
- name: Skip job if not required
run: |
if [ "${{ inputs.skip }}" = "true" ]; then
echo "Skipping update-lockfile job as skip is set to true."
exit 0
fi
- name: Checkout repo
uses: actions/checkout@v4
with:
Expand Down

0 comments on commit c9530b1

Please sign in to comment.