-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
47 lines (45 loc) · 1.65 KB
/
action.yml
File metadata and controls
47 lines (45 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: SOUP - Generate Reports optionally including PDFs
description: 'Generate SOUP Reports'
inputs:
repo-token:
description: 'Github repository token (used for adding artifact to release)'
type: string
required: false
default: ''
generate-pdfs:
description: 'Set to true to generate PDFs'
required: true
type: boolean
report-artifact-name:
description: 'Name of the reports artifact'
required: false
default: 'soup_reports'
runs:
using: "composite"
steps:
- name: Copy scripts
shell: bash
run: git clone git@github.com:QuickBirdEng/action-scripts.git action-scripts && mv action-scripts/* .
- name: Validate SOUPs and optionally Generate PDFs
shell: bash
run: bash validate-soups-and-optionally-generate-pdfs.sh "${{ github.ref_type == 'tag' || inputs.generate-pdfs }}"
- name: Upload Reports
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.report-artifact-name }}
path: ${{ inputs.report-artifact-name }}
- name: Compress XCArchive File as tar.gz
if: ${{ github.ref_type == 'tag' }}
id: compress
uses: QuickBirdEng/actions/compress-artifact@main
with:
name: ${{ inputs.report-artifact-name }}
artifact-path: ${{ inputs.report-artifact-name }}
- name: Add Artifacts to Release Assets (Only for tags)
if: ${{ github.ref_type == 'tag' }}
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ inputs.repo-token }}
file: ${{ steps.compress.outputs.artifact-path }}
asset_name: ${{ github.ref_name }}-${{ inputs.report-artifact-name }}.tar.gz
tag: ${{ github.ref }}