-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (42 loc) · 1.18 KB
/
md2steam.yaml
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
# =================
# MARKDOWN-TO-STEAM
# =================
# This workflow parses the repo's README.md file and creates/updates a text file for the steam workshop description
name: Markdown-to-Steam
# Activation Events
# =================
on:
# When README.md is updated
push:
paths:
- README.md
# When a workflow event is dispatched manually
workflow_dispatch:
# Jobs
# ====
jobs:
Markdown-to-Steam:
runs-on: ubuntu-latest
name: Markdown-to-Steam
steps:
# Actions/Checkout
# ================
# Required for GITHUB_WORKSPACE
- name: Checkout
uses: actions/checkout@v2
# Execute Markdown-to-Steam Action
# ================================
- name: Markdown-to-Steam
uses: HunterGhost27/Markdown-to-Steam@main
id: Markdown-to-Steam
# Config Parameters
# -----------------
with:
# The file to change
file: "README.md"
# Target directory
outDir: "Documentation"
# Environment Variables
# ---------------------
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to make use of the GitHub API