-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
63 lines (57 loc) · 1.69 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: "GitHub Readme Showwcase Cards"
author: "Sahil Sagwekar"
description: "Workflow for displaying your Showwcase profile as an SVG"
# https://actions-cool.github.io/github-action-branding/
branding:
icon: 'briefcase'
color: 'gray-dark'
inputs:
api_key:
description: "Your Showwcase API key"
required: true
username:
description: "Your Showwcase username"
required: true
theme:
description: "The theme for your profile (light || dark)"
required: false
default: "dark"
commit_message:
description: "The commit message for the workflow"
required: false
default: "Updated Showwcase profile card"
readme_path:
description: "The path to your README.md file"
required: false
default: "README.md"
author_name:
description: "The name of the author"
required: false
default: "Sahil Sagwekar"
runs:
using: "composite"
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install dependencies
shell: bash
run: |
python -m pip install -r ${{ github.action_path }}/requirements-workflow.txt
- name: Update readme
shell: bash
run: |
python ${{ github.action_path }}/action.py \
--api_key "${{ inputs.api_key }}" \
--username "${{ inputs.username }}" \
--theme "${{ inputs.theme }}" \
--readme_path "${{ inputs.readme_path }}"
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
message: ${{ inputs.commit_message }}
author_name: ${{ github.actor }}
author_email: ${{ github.actor }}@users.noreply.github.com