generated from actions/typescript-action
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
56 lines (47 loc) · 1.48 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
name: 'Coffee-Readme'
author: 'Akos Balasko'
description: 'Your Buy Me A Coffee Donations and Messages pushed into your Readme.md'
inputs:
BUY_ME_A_COFFEE_TOKEN: # id of input
description: 'Your Buy Me A Coffee token'
required: true
GH_TOKEN:
description: "GitHub access token with Repo scope"
default: ${{ github.token }}
required: true
README:
description: "Case sensitive name of your readme.md "
default: "README.md"
COMMIT_MESSAGE:
description: "Add a commit message of your choice"
default: "Buy me a Coffee messages updated"
required: false
NUMBER_OF_MESSAGES:
description: 'Number of the messages to show'
default: 3
BRANCH:
description: 'Branch to be updated'
default: main
runs:
using: 'composite'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- run: ls -la
shell: bash
- uses: akosbalasko/[email protected]
with:
BUY_ME_A_COFFEE_TOKEN: ${{ inputs.BUY_ME_A_COFFEE_TOKEN }}
NUMBER_OF_MESSAGES: ${{ inputs.NUMBER_OF_MESSAGES }}
FILENAME: ${{ inputs.README }}
- uses: test-room-7/action-update-file@v1
with:
file-path: ${{ inputs.README }}
commit-msg: ${{ inputs.COMMIT_MESSAGE }}
github-token: ${{ inputs.GH_TOKEN }}
branch: ${{ inputs.BRANCH }}
committer-name: Buy Me a Coffee Readme action
committer-email: [email protected]
branding:
icon: "award"
color: "yellow"