-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
44 lines (39 loc) · 1.06 KB
/
action.yml
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
name: "Upload data to biglocalnews.org"
author: 'Big Local News'
description: "Automatically archive your comma-delimited files with Big Local News"
branding:
icon: 'upload-cloud'
color: 'red'
inputs:
api-key:
description: |-
Your biglocalnews.org API token.
required: true
project-id:
description: |-
The identifier of the biglocalnews.org project where the files will be uploaded.
required: true
path:
description: |-
The file or folder path inside the action's filesystem to upload.
required: true
runs:
using: "composite"
steps:
- id: setup-python
name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.9
- id: install-deps
name: Install Python dependencies
run: pip install bln
shell: bash
- id: upload-files
name: Upload files
run: python ${{ github.action_path }}/upload.py
shell: bash
env:
api-key: ${{ inputs.api-key }}
project-id: ${{ inputs.project-id }}
path: ${{ inputs.path }}