[pre-commit.ci] pre-commit autoupdate #52
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
--- | |
# SPDX-License-Identifier: Apache-2.0 | |
# Copyright 2024 The Linux Foundation <matthew.watkins@linuxfoundation.org> | |
name: "Test Nexus Upload" | |
# yamllint disable-line rule:truthy | |
on: | |
workflow_dispatch: | |
pull_request: | |
types: [opened, reopened, edited, synchronize] | |
jobs: | |
upload-files: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: "Upload test file to Nexus" | |
id: nexus-upload | |
# ToDo: change/update the line below when testing is completed | |
uses: ModeSevenIndustrialSolutions/nexus-upload-action@v0.1.8 | |
with: | |
nexus_server: ${{ secrets.nexus_server }} | |
nexus_username: ${{ secrets.nexus_username }} | |
nexus_password: ${{ secrets.nexus_password }} # Repository secret | |
nexus_repository: testing | |
upload_directory: files | |
filename_suffix: .txt # Optionally matches files with text as suffix | |
testing: true # Optionally creates upload directory and file | |
# Not implemented | |
# repository_format: raw | |
- name: "Report results" | |
run: | | |
# Report results | |
echo "errors: ${{ steps.nexus-upload.outputs.errors }}" | |
echo "successes: ${{ steps.nexus-upload.outputs.successes }}" | |
echo "failures: ${{ steps.nexus-upload.outputs.failures }}" |