Skip to content

Commit

Permalink
feat: handle artifact upload (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
lkstrp authored Sep 5, 2024
1 parent c326d7b commit d1d61ad
Showing 1 changed file with 49 additions and 6 deletions.
55 changes: 49 additions & 6 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@ runs:
using: "composite"
steps:

# ----------------------------------------
# 'run-self-hosted-validation' step
# ----------------------------------------
# ----------------------------------------
# For all steps
# ----------------------------------------

- name: General setup and checks
run: |
# Check if from fork
Expand All @@ -68,6 +69,10 @@ runs:
shell: bash

# ----------------------------------------
# 'run-self-hosted-validation' step
# ----------------------------------------

- name: Run self-hosted validation
if: ${{ inputs.step == 'run-self-hosted-validation' }}
run: |
Expand Down Expand Up @@ -114,10 +119,48 @@ runs:
--main_command "ariadne_all"
shell: bash

- name: Upload artifacts (logs)
if: ${{ inputs.step == 'run-self-hosted-validation' }}
uses: actions/upload-artifact@v4
with:
name: logs
path: |
~/${{ github.repository }}/validator-metadata.yml
~/${{ github.repository }}/main/logs/
~/${{ github.repository }}/main/.snakemake/
~/${{ github.repository }}/feature/logs/
~/${{ github.repository }}/feature/.snakemake/
if-no-files-found: error
retention-days: 90
include-hidden-files: true

- name: Upload artifacts (results main)
if: ${{ inputs.step == 'run-self-hosted-validation' }}
uses: actions/upload-artifact@v4
with:
name: results (main branch)
path: |
~/${{ github.repository }}/main/results
if-no-files-found: error
retention-days: 90
include-hidden-files: true

- name: Upload artifacts (results feature)
if: ${{ inputs.step == 'run-self-hosted-validation' }}
uses: actions/upload-artifact@v4
with:
name: results (feature branch)
path: |
~/${{ github.repository }}/feature/results
if-no-files-found: error
retention-days: 90
include-hidden-files: true


# ----------------------------------------
# 'create-comment' step
# ----------------------------------------
# ----------------------------------------
# 'create-comment' step
# ----------------------------------------

- name: Create comment specific setup and checks
if: ${{ inputs.step == 'create-comment' }}
Expand Down

0 comments on commit d1d61ad

Please sign in to comment.