-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.txt
82 lines (58 loc) · 1.6 KB
/
README.txt
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
[h1]Markdown-to-Steam[/h1]
GitHub Action to automatically parse README.md into a Steam BB-code text file.
[h3]Workflow setup[/h3]
Create a workflow file `.github/workflows/md2steam.yaml`.
[code]
[h1]=================[/h1]
[h1]MARKDOWN-TO-STEAM[/h1]
[h1]=================[/h1]
[h1]This workflow converts the repo's README.md into steam bb-code[/h1]
name: Markdown-to-Steam
[h1]Activation Events[/h1]
[h1]=================[/h1]
on:
# When README.md is updated
push:
paths:
[list]
[*] README.md
[/list]
# When a workflow event is dispatched manually
workflow_dispatch:
[h1]Jobs[/h1]
[h1]====[/h1]
jobs:
Markdown-to-Steam:
runs-on: ubuntu-latest
name: Markdown-to-Steam
steps:
# Actions/Checkout
# ================
# Required for GITHUB_WORKSPACE
[list]
[*] name: Checkout
[/list]
uses: actions/checkout@v2
# Execute Markdown-to-Steam Action
# ================================
[list]
[*] name: Markdown-to-Steam
[/list]
uses: HunterGhost27/Markdown-to-Steam@main
id: Markdown-to-Steam
# Config Parameters
# -----------------
with:
# The file to change
file: "README.md"
# Target directory
target: "README.txt"
# Commit Message
commitMessage: "Update Steam BB-Content"
# Environment Variables
# ---------------------
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to make use of the GitHub API
[/code]
[h2]Permissions[/h2]
This action needs the `GITHUB_TOKEN` secret to make use of the GitHub API.