Applying continue on error to all steps to avoid runner failure.

Signed-off-by: Sunil Singh <sunil.singh@suse.com>
This commit is contained in:
Sunil Singh
2024-05-09 09:42:45 -07:00
parent 3aba1377a9
commit a128ecf144
+4
View File
@@ -13,10 +13,12 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
continue-on-error: true
with: with:
fetch-depth: 0 # OR "2" -> To retrieve the preceding commit. fetch-depth: 0 # OR "2" -> To retrieve the preceding commit.
submodules: true submodules: true
- name: Get all changed markdown files - name: Get all changed markdown files
continue-on-error: true
id: changed-markdown-files id: changed-markdown-files
uses: tj-actions/changed-files@v42 uses: tj-actions/changed-files@v42
with: with:
@@ -29,11 +31,13 @@ jobs:
env: env:
ALL_CHANGED_FILES: ${{ 0 }} ALL_CHANGED_FILES: ${{ 0 }}
- name: No files changed? - name: No files changed?
continue-on-error: true
if: steps.changed-markdown-files.outputs.any_changed == 'false' if: steps.changed-markdown-files.outputs.any_changed == 'false'
run: | run: |
echo "No files changed" echo "No files changed"
echo "ALL_CHANGED_FILES=$ALL_CHANGED_FILES" >> $GITHUB_ENV echo "ALL_CHANGED_FILES=$ALL_CHANGED_FILES" >> $GITHUB_ENV
- name: List all changed files markdown files - name: List all changed files markdown files
continue-on-error: true
if: steps.changed-markdown-files.outputs.any_changed == 'true' if: steps.changed-markdown-files.outputs.any_changed == 'true'
env: env:
ALL_CHANGED_FILES: ${{ steps.changed-markdown-files.outputs.all_changed_files }} ALL_CHANGED_FILES: ${{ steps.changed-markdown-files.outputs.all_changed_files }}