-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
39 lines (39 loc) · 1.16 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
name: 'Upload to Barbarian'
description: 'Upload a recipe to Barbarian remote'
author: 'ericLemanissier'
inputs:
recipe_path:
description: "The path to the recipe to upload"
required: true
package_name:
description: "The name of the package to upload"
required: true
package_version:
description: "The version number of the package to upload"
required: true
runs:
using: "composite"
steps:
- name: Install barbarian
run: |
python3 -m pip install -r requirements.txt
shell: bash
- name: Fix path on Linux
run: |
echo "/home/runner/.local/bin" >> $GITHUB_PATH
shell: bash
- name: Export recipe
shell: bash
run: |
barbarian export ${{ inputs.recipe_path }} ${{ inputs.package_name }}/${{ inputs.package_version }}@${{ github.repository }}
- name: Set git name
shell: bash
run: |
git config --global user.name '${{ github.repository_owner }}'
- name: Upload recipe
shell: bash
run: |
barbarian upload ${{ inputs.package_name }}/${{ inputs.package_version }}@${{ github.repository }}
branding:
icon: "upload-cloud"
color: "green"