File: action.yml

package info (click to toggle)
dnsjava 3.6.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,516 kB
  • sloc: java: 45,056; xml: 914; makefile: 3
file content (50 lines) | stat: -rw-r--r-- 1,650 bytes parent folder | download | duplicates (2)
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
40
41
42
43
44
45
46
47
48
49
50
name: Upload artifact
description: Wrapper around GitHub's official action, with additional archiving before upload

# https://github.com/actions/upload-artifact/blob/main/action.yml
inputs:
  name:
    description: Artifact name
    required: true
  filename:
    description: Tar filename in artifact
    required: false
    default: ''
  path:
    description: One or more files, directories or wildcard pattern that describes what to upload
    required: true
  if-no-files-found:
    description: >
      The desired behavior if no files are found using the provided path.
      Available Options:
        warn: Output a warning but do not fail the action
        error: Fail the action with an error message
        ignore: Do not output any warnings or errors, the action does not fail
    required: false
    default: warn
  retention-days:
    description: >
      Duration after which artifact will expire in days. 0 means using default retention.
      Minimum 1 day.
      Maximum 90 days unless changed from the repository settings page.
    required: false
    default: '1'

runs:
  using: composite
  steps:
    - name: Archive artifacts
      run: tar -cvf "${{inputs.name}}${{ inputs.filename }}.tar" $(echo "${{ inputs.path }}" | tr '\n' ' ')
      shell: bash

    - name: Upload artifacts
      uses: actions/upload-artifact@v4
      with:
        if-no-files-found: ${{ inputs.if-no-files-found }}
        name: ${{ inputs.name }}
        path: ${{ inputs.name }}${{ inputs.filename }}.tar
        retention-days: ${{ inputs.retention-days }}

    - name: Remove archive
      run: rm -f ${{ inputs.name }}.tar
      shell: bash