-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathaction.yml
More file actions
27 lines (25 loc) · 879 Bytes
/
action.yml
File metadata and controls
27 lines (25 loc) · 879 Bytes
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
name: 'vscode-webdriverio Archive Upload'
description: 'compresses and uploads an archive to be reused across jobs'
inputs:
paths:
description: 'paths to files or directories to archive (recursive)'
output:
description: 'output file name'
name:
description: 'name of the archive to upload'
runs:
using: 'composite'
steps:
- name: 🤐 Create Archive (Linux or Mac)
run: zip -q -r ${{ inputs.output }} ${{ inputs.paths }}
shell: bash
if: ${{ runner.os != 'Windows' }}
- name: 🤐 Create Archive (Windows)
run: 7z a -tzip -r ${{ inputs.output }} ${{ inputs.paths }}
shell: bash
if: ${{ runner.os == 'Windows' }}
- name: ⬆️ Upload Archive
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: ${{ inputs.name }}
path: ${{ inputs.output }}