Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the xcactivitylog steps in preternatural-build optional #8

Merged
merged 1 commit into from
Nov 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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