Skip to content

Commit

Permalink
Make the xcactivitylog steps in preternatural-build optional
Browse files Browse the repository at this point in the history
  • Loading branch information
vmanot committed Nov 28, 2024
1 parent fe9ecb4 commit 0c6335a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion USING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 5 additions & 0 deletions preternatural-build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 0c6335a

Please sign in to comment.