continue on error #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test artifact action | |
on: [push] | |
jobs: | |
custom_test: | |
runs-on: ubuntu-latest | |
continue-on-error: true | |
name: Test Dataverse Action | |
env: | |
PORT: 8080 | |
steps: | |
- name: "Checkout" | |
uses: "actions/checkout@v4" | |
- name: Run Dataverse Action | |
id: dataverse | |
uses: ./ | |
with: | |
image_tag: "burritohasbeeneaten" | |
postgresql_version: 15 | |
jvm_options: | | |
dataverse.api.signature-secret=eikaizieb2Oghaex | |
dataverse.pid.datacite.rest-api-url=https://api.datacite.org | |
- name: Check artifact | |
id: artifact-check | |
if: steps.dataverse.outcome == 'failure' | |
uses: xSAVIKx/artifact-exists-action@v0 | |
with: | |
name: "logs.tgz" | |
- name: Set GitHub Action as success if "dataverse" has failed | |
if: steps.artifact-check.outcome == 'success' | |
run: exit 0 |