-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
43 lines (43 loc) · 1.12 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
name: bili-gist-python
description: Update a pinned gist to show your Bilibili stats and your latest videos.
inputs:
sessdata:
description: Your bilibili sessdata
required: true
biliuid:
description: Bilibili uid
required: true
gistid:
description: Your gistid
required: true
ghtoken:
description: Your gh_token with gist permission
required: true
runs:
using: composite
steps:
- name: Prepareing...
run: echo "::group::Prepareing..."
shell: bash
- name: setup python
uses: actions/setup-python@v5
with:
python-version: 3.9
cache: 'pip'
cache-dependency-path: '**/requirements.txt'
- name: Install requirement
run: pip install -r $GITHUB_ACTION_PATH/requirements.txt
shell: bash
- run: echo "::endgroup::"
shell: bash
- name: Update gist
run: python $GITHUB_ACTION_PATH/gist.py
env:
GH_TOKEN: ${{ inputs.ghtoken }}
GIST_ID: ${{ inputs.gistid }}
BILI_SESSDATA: ${{ inputs.sessdata }}
BILI_UID: ${{ inputs.biliuid }}
shell: bash
- name: output logs
run: cat log.log >>$GITHUB_STEP_SUMMARY
shell: bash