woocommerce/.github/actions/tests/upload-allure-files-to-bucket/action.yml

38 lines
1.2 KiB
YAML
Raw Normal View History

2023-03-16 00:09:58 +00:00
name: Upload Allure files to bucket
description: Upload Allure files to bucket.
permissions: {}
inputs:
2023-03-18 00:29:56 +00:00
artifact-name:
description: Name of the artifact that contains the allure-report and/or allure-results folders.
2023-03-16 00:09:58 +00:00
required: true
aws-region:
required: true
aws-access-key-id:
required: true
aws-secret-access-key:
required: true
s3-bucket:
required: true
include-allure-results:
2023-03-16 05:38:29 +00:00
dafault: false
2023-03-16 00:09:58 +00:00
runs:
using: composite
steps:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1-node16
with:
aws-region: ${{ inputs.aws-region }}
aws-access-key-id: ${{ inputs.aws-access-key-id }}
aws-secret-access-key: ${{ inputs.aws-secret-access-key }}
2023-03-18 00:29:56 +00:00
- name: Upload Allure artifact
2023-03-17 07:41:06 +00:00
env:
2023-03-18 00:29:56 +00:00
ARTIFACT_NAME: ${{ inputs.artifact-name }}
2023-03-17 07:41:06 +00:00
S3_BUCKET: ${{ inputs.s3-bucket }}
2023-03-18 00:29:56 +00:00
INCLUDE_ALLURE_RESULTS: ${{ inputs.include-allure-results }}
2023-03-16 00:09:58 +00:00
shell: bash
2023-03-17 07:41:06 +00:00
working-directory: .github/actions/tests/upload-allure-files-to-bucket/scripts
2023-03-18 00:29:56 +00:00
run: bash upload-allure-artifact.sh