-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
50 lines (49 loc) · 1.63 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
name: "MyAnimeList readme GH-Actions"
author: "Gamersindo1223"
description: "Puts your newest anime activity from MyAnimeList into your readme"
inputs:
gh_token:
description: "GitHub access token with Repo scope"
default: ${{ github.token }}
required: true
mal_username:
description: "Username of your MyanimeList Account"
default: "gamersindo1223"
required: true
repo_path:
description: "Path to your repository. Example: gamersindo1223/gamersindo1223"
default: ""
required: true
repo_branch:
description: "Branch of your specified repository"
default: "main"
required: false
repo_filename:
description: "Your Markdown Filename"
default: "README.md"
required: false
runs:
using: "composite"
steps:
- uses: actions/checkout@v3
- name: cloning MAL-autoreadme
run: git clone https://github.com/gamersindo1223/MAL-ReadmeList
shell: bash
- name: Set Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
working-directory: ./MAL-ReadmeList
run: npm i
shell: bash
- name: Run the script
working-directory: ./MAL-ReadmeList
run: node index.mjs
shell: bash
env:
gh_token: ${{ inputs.gh_token }}
mal_username: ${{ inputs.mal_username }}
repo_path: ${{ inputs.repo_path }}
repo_branch: ${{ inputs.repo_branch }}
repo_filename: ${{ inputs.repo_filename }}