-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathaction.yml
82 lines (70 loc) · 2.23 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: "AniList readme workflow"
author: "pxseu"
description: "Puts your newest activity from AniList into your readme"
inputs:
user_id:
description: "Your anilist user id"
required: false
user_name:
description: "Your anilist username"
required: false
gh_token:
description: "GitHub access token with Repo scope"
default: ${{ github.token }}
required: false
readme_path:
description: "Path of the readme file you want to update"
required: false
max_post_count:
description: "Maximum number of activites you want to show on your readme"
default: 5
required: false
commit_message:
description: "Message that will be used while commiting"
default: "Update AniList activity in README.md"
required: false
commit_username:
description: "The username of the commiter"
default: "GitHub Action"
required: false
commit_email:
description: "Email address of the commiter"
default: "action@github.com"
required: false
preferred_language:
description: "Preferred language of the list content"
default: "english"
required: false
timezone:
description: "Timezone of the list content (e.g. Europe/Berlin)"
default: "UTC"
required: false
date_format:
description: "Date format of the list content (e.g. {D}/{M or MW}/{Y} {h}:{m})"
default: "{h}:{m} {D} {MW} {Y}"
required: false
runs:
using: "composite"
steps:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r ${{ github.action_path }}/requirements.txt
shell: bash
- name: Run the script
run: |
python ${{ github.action_path }}/
shell: bash
env:
INPUT_USER_ID: ${{ inputs.user_id }}
INPUT_USER_NAME: ${{ inputs.user_name }}
INPUT_PREFERRED_LANGUAGE: ${{ inputs.preferred_language }}
INPUT_MAX_POST_COUNT: ${{ inputs.max_post_count }}
INPUT_README_PATH: ${{ inputs.readme_path }}
INPUT_COMMIT_MESSAGE: ${{ inputs.commit_message }}
INPUT_GH_TOKEN: ${{ inputs.gh_token }}
INPUT_COMMIT_EMAIL: ${{ inputs.commit_email }}
INPUT_COMMIT_USERNAME: ${{ inputs.commit_username }}
branding:
icon: "activity"
color: "purple"