From 0c6335a77c4d944d27fb175851df28a29e644a16 Mon Sep 17 00:00:00 2001 From: Vatsal Manot Date: Thu, 28 Nov 2024 17:29:49 +0530 Subject: [PATCH] Make the xcactivitylog steps in preternatural-build optional --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/PreternaturalAI/github-action?shareId=XXXX-XXXX-XXXX-XXXX). --- README.md | 2 +- USING.md | 2 +- preternatural-build/action.yml | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cc3b4b8..80c6af2 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ This repository contains GitHub Actions for use with [Preternatural CLI](https:/ # Actions ## `preternatural-build-action` -Runs the Preternatural CLI build command on your repositories. +Runs the Preternatural CLI build command on your repositories. The xcactivitylog steps are optional and will not stop the workflow if they fail. ```yaml - uses: PreternaturalAI/preternatural-build-action@v1 diff --git a/USING.md b/USING.md index df52c5d..cbcc997 100644 --- a/USING.md +++ b/USING.md @@ -13,7 +13,7 @@ This document catalogs the available Preternatural GitHub Actions and their usag ## Build Action -The Build Action runs Preternatural build commands on repositories with specified Xcode configurations. +The Build Action runs Preternatural build commands on repositories with specified Xcode configurations. The xcactivitylog steps are optional and will not stop the workflow if they fail. ### Build Action Inputs diff --git a/preternatural-build/action.yml b/preternatural-build/action.yml index a0dbe5e..2104db3 100644 --- a/preternatural-build/action.yml +++ b/preternatural-build/action.yml @@ -164,6 +164,7 @@ runs: - name: Find and copy all xcactivity logs if: failure() + continue-on-error: true shell: bash run: | DERIVED_DATA_PATH=${{ github.workspace }}/${{ inputs.derived_data_path }} @@ -191,12 +192,14 @@ runs: - name: Install xclogparser if: failure() + continue-on-error: true shell: bash run: | brew install xclogparser - name: Convert logs to JSON and print if: failure() + continue-on-error: true shell: bash run: | mkdir -p ./json_logs @@ -210,6 +213,7 @@ runs: - name: Upload xcactivity logs (JSON) if: failure() + continue-on-error: true uses: actions/upload-artifact@v4 with: name: xcactivity-logs-json @@ -218,6 +222,7 @@ runs: - name: Upload xcactivity logs (Raw) if: failure() + continue-on-error: true uses: actions/upload-artifact@v4 with: name: xcactivity-logs-raw