-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (34 loc) · 1.31 KB
/
test.yaml
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
---
# SPDX-License-Identifier: Apache-2.0
# Copyright 2024 The Linux Foundation <[email protected]>
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/[email protected]
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 }}"