mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
* AAE-18117 - Add pre-checks job * AAE-18117 - Use pinned SHA * AAE-18117 - Update dependabot.yml
33 lines
886 B
YAML
33 lines
886 B
YAML
name: Initialize Artifact
|
|
description: 'Allow the user to initialize an empty artifact used globally'
|
|
|
|
inputs:
|
|
artifact-name:
|
|
description: 'The name of the artifact'
|
|
required: true
|
|
type: string
|
|
file-name:
|
|
description: 'The name of the file with extension created in the artifact'
|
|
required: true
|
|
type: string
|
|
content:
|
|
description: 'The init content the file should have'
|
|
type: string
|
|
default: ""
|
|
|
|
runs:
|
|
using: "composite"
|
|
|
|
steps:
|
|
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
|
|
- name: Create empty artifact
|
|
shell: bash
|
|
run:
|
|
echo "${{inputs.content}}" > ${{ inputs.file-name }}
|
|
|
|
- name: Upload artifact
|
|
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
|
|
with:
|
|
name: ${{ inputs.artifact-name }}
|
|
path: ${{ inputs.file-name }}
|