mirror of
https://github.com/Sped0n/bridget.git
synced 2026-04-14 10:09:31 -07:00
fix(artifacts.yml): add continue-on-error flag to the filter job to prevent workflow from failing if any step fails
This commit is contained in:
11
.github/workflows/artifacts.yml
vendored
11
.github/workflows/artifacts.yml
vendored
@@ -9,6 +9,7 @@ jobs:
|
|||||||
filter:
|
filter:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: Filter
|
name: Filter
|
||||||
|
continue-on-error: true
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
@@ -24,25 +25,29 @@ jobs:
|
|||||||
|
|
||||||
- name: Run step if any file(s) in the scope change
|
- name: Run step if any file(s) in the scope change
|
||||||
if: steps.changed-files-specific.outputs.any_changed == 'true'
|
if: steps.changed-files-specific.outputs.any_changed == 'true'
|
||||||
run: echo "file(s) in scope is affected"
|
run: echo "{result}={false}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Prevent from running
|
- name: Prevent from running
|
||||||
if: steps.changed-files-specific.outputs.any_changed != 'true'
|
if: steps.changed-files-specific.outputs.any_changed != 'true'
|
||||||
run: exit 1
|
run: echo "{result}={false}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
build:
|
build:
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
name: Build
|
||||||
needs: [filter]
|
needs: [filter]
|
||||||
if: |
|
if: |
|
||||||
github.ref == 'refs/heads/main' &&
|
github.ref == 'refs/heads/main' &&
|
||||||
github.event.repository.fork == false
|
github.event.repository.fork == 'false' &&
|
||||||
|
needs.filter.result == 'true'
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Setup pnpm
|
- name: Setup pnpm
|
||||||
uses: pnpm/action-setup@v2
|
uses: pnpm/action-setup@v2
|
||||||
|
with:
|
||||||
|
version: 8
|
||||||
|
|
||||||
- name: Get pnpm store directory
|
- name: Get pnpm store directory
|
||||||
id: pnpm-cache
|
id: pnpm-cache
|
||||||
|
|||||||
Reference in New Issue
Block a user